1. 20 Nov, 2001 4 commits
    • Kristian Rietveld's avatar
      replace gboolean free_last in the function parameters with gint depth. · e1634f47
      Kristian Rietveld authored
      Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
              replace gboolean free_last in the function parameters with
              gint depth. Changes to reflect new situation.
      
              * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
              replace gboolean free_last, with gint depth, add gint current_depth.
              Changes to reflect new situation.
      
              * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
              to reflect new situation
      
              * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
      e1634f47
    • Owen Taylor's avatar
      Fix problem where notebook gap was double shifted by allocation.x/y · cbab8636
      Owen Taylor authored
      Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
      	where notebook gap was double shifted by allocation.x/y
      
      	* gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
      	to unmap children.
      cbab8636
    • Tim Janik's avatar
      fix allocation to be relative to paned->allocation, now that this is a · 23949776
      Tim Janik authored
      Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
              allocation to be relative to paned->allocation, now
              that this is a NO_WINDOW widget.
              * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
      
              * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
              needs to be a boxed property.
      23949776
    • Sven Neumann's avatar
      shut up CVS · 5b9a4753
      Sven Neumann authored
      5b9a4753
  2. 19 Nov, 2001 16 commits
    • Kwok-Koon Cheung's avatar
      Usual update. · 05351d8d
      Kwok-Koon Cheung authored
      05351d8d
    • Owen Taylor's avatar
      Use the widget's state when drawing the indicator, as in GtkCheckButton. · f4f196c1
      Owen Taylor authored
      Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
      	Use the widget's state when drawing the indicator, as
      	in GtkCheckButton. This gives us color changes for
      	un-prelighted checkbuttons. (#63308, Matt Wilson)
      f4f196c1
    • Owen Taylor's avatar
      (Fixes related to #64428, Michael Meeks) · 0e8a7fb4
      Owen Taylor authored
      Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
      
      	(Fixes related to #64428, Michael Meeks)
      
      	* gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
      	widget, so it gets mapped again properly when we
      	add to a parent.
      
      	* gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
      	plug->socket_window.
      
      	* gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
      	socket_window to NULL, not FALSE.
      0e8a7fb4
    • Michael Natterer's avatar
      show notebook->event_window with gdk_window_show_unraised(), so it doesn't · 2268abe4
      Michael Natterer authored
      2001-11-19  Michael Natterer  <mitch@gimp.org>
      
      	* gtk/gtknotebook.c: show notebook->event_window with
      	gdk_window_show_unraised(), so it doesn't catch the events which
      	should go to the tab widgets first.
      2268abe4
    • Jonathan Blandford's avatar
      Add a "resizable" property, to get rid of the · 94a097ef
      Jonathan Blandford authored
      Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
      	"resizable" property, to get rid of the
      	GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
      	(gtk_tree_view_column_set_resizable): New function to set resizable.
      	(gtk_tree_view_column_set_resizable): getter.
      
      	* tests/testtreecolumns.c (add_clicked): modify for above change.
      
      	* Makefile.am (install-data-hook): remove old .pc files before
      	installing the new one.  We used to symlink this, and it will
      	break old installs.
      94a097ef
    • Havoc Pennington's avatar
      put in a test for negative indentation values · 650e8268
      Havoc Pennington authored
      2001-11-19  Havoc Pennington  <hp@pobox.com>
      
      	* tests/testtext.c (fill_example_buffer): put in a test for
      	negative indentation values
      650e8268
    • Owen Taylor's avatar
      Change default for justify to GTK_JUSTIFY_LEFT. Assuming that multiline · 96e6febe
      Owen Taylor authored
      Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklabel.c (gtk_label_init): Change default for
      	justify to GTK_JUSTIFY_LEFT. Assuming that multiline
      	labels are most often wrapped labels, this gives better
      	compatibility with GTK+-1.2, where justification was
      	ignored for wrapped labesl and is a more sensible
      	default in any case. (#64489)
      
      	* gtk/gtklabel.c (gtk_label_class_init): Fix default
      	for wrap property to FALSE.
      96e6febe
    • jacob berkman's avatar
      add gtkmarshal.list · c059e856
      jacob berkman authored
      2001-11-19  jacob berkman  <jacob@ximian.com>
      
      	* gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
      c059e856
    • Owen Taylor's avatar
      Use RevertToParent, not RevertToNone. (#64613, Matthias Clasen) · 7fb44279
      Owen Taylor authored
      Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
              RevertToParent, not RevertToNone. (#64613,
              Matthias Clasen)
      7fb44279
    • Owen Taylor's avatar
      label_xalign and label_yalign need to be float properties to correspond to · 99157628
      Owen Taylor authored
      Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkframe.c (gtk_frame_class_init): label_xalign
      	and label_yalign need to be float properties to
      	correspond to GTK+-1.2, to gtk_frame_set_label_align,
      	and to the types of the xalign and yalign properties of GtkMisc.
      	(#63484, Vitaly Tishkov)
      
      Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtksocket.h (struct _GtkSocketClass): Fix return
      	of plug_added vfunc. (#64408, Jeff Franks)
      99157628
    • Owen Taylor's avatar
      Fix return of plug_added vfunc. (#64408, Jeff Franks) · 3a6bf7b6
      Owen Taylor authored
      Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtksocket.h (struct _GtkSocketClass): Fix return
      	of plug_added vfunc. (#64408, Jeff Franks)
      3a6bf7b6
    • Elliot Lee's avatar
    • Owen Taylor's avatar
      Undef HAVE_STDLIB_H before checking for jpeg, because jconfig.h has this · befe411e
      Owen Taylor authored
      Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (deps): Undef HAVE_STDLIB_H before
      	checking for jpeg, because jconfig.h has this
      	in it too (%#$@!). Fix from Matthias Clasen, #64500.
      befe411e
    • Owen Taylor's avatar
      Fix a memory leak when retrieving atom names. (Michael Meeks, #64508) · d2e27731
      Owen Taylor authored
      Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
      	memory leak when retrieving atom names. (Michael Meeks,
      	#64508)
      d2e27731
    • Alexander Larsson's avatar
      Update to new Pango API. · ecbfe81b
      Alexander Larsson authored
      2001-11-18  Alex Larsson  <alexl@redhat.com>
      
      	* gdk/x11/gdkfont-x11.c (gdk_font_from_description):
      	Update to new Pango API.
      ecbfe81b
    • Owen Taylor's avatar
      Rename the GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the · e4be2240
      Owen Taylor authored
      Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
      	GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
      	GTK_OBJECT_DESTROYED() check macro.
      
      	* gtk/gtkbindings.c (gtk_bindings_activate): Remove
      	instances of GTK_OBJECT_DESTROYED() that weren't
      	needed any more.
      
      	* gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
      	for a connection to ::destroy.
      e4be2240
  3. 18 Nov, 2001 9 commits
    • Owen Taylor's avatar
      Make a NO_WINDOW widget, as it should have been since the beginning, but · 3432dff2
      Owen Taylor authored
      Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
      	have been since the beginning, but as special hack,
      	allow clearing the NO_WINDOW flag to get a window widget.
      3432dff2
    • Kristian Rietveld's avatar
      return TRUE when value changed, so row_changed is being emitted · 3828d025
      Kristian Rietveld authored
      Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtktreestore.c: return TRUE when value changed, so
              row_changed is being emitted
      3828d025
    • Hans Breuer's avatar
      make it compile with msvc: !HAVE_UNISTD_H; no label without op, even if · d9eb9ba9
      Hans Breuer authored
      2001-11-18  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
      	no label without op, even if it's a no-op.
      
      	* gtk/gtk.def :
      	* gtk/makefile.msc.in : reflect marshaler split, some clean-up
      
      	* config.h.win32.in : remove definition of HAVE_DIRENT_H
      	* gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
      	required anymore, replace it.
      	* gtk/queryimmodules.c : DIR -> GDir replacement, also
      	getcwd() -> g_get_current_dir()
      
      	* gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
      	Even 'noisy laugh' scolling appears to work, though I still can't
      	claim to have fully understood what it is supposed to do ...
      d9eb9ba9
    • Hans Breuer's avatar
      use g_strcasecmp(), some poor platforms don't have strcasecmp() · cdc4f6a4
      Hans Breuer authored
      2001-11-18  Hans Breuer  <hans@breuer.org>
      
      	* io-xpm.c : use g_strcasecmp(), some poor platforms
      	don't have strcasecmp()
      
      	* makefile.msc : do INCLUDE_png etc. definition here to avoid
      	my temporary 'gdk-pixbuf-io-include.h' hack
      cdc4f6a4
    • Owen Taylor's avatar
      Remove include of gobject/signal.h. · e913a97b
      Owen Taylor authored
      Sun Nov 18 07:54:22 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gdk-pixbuf-loader.c: Remove include of gobject/signal.h.
      e913a97b
    • Owen Taylor's avatar
      Include glib-object.h instead of gobject/gsignal.h · 86dbeabc
      Owen Taylor authored
      Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkenums.h: Include glib-object.h instead of
      	gobject/gsignal.h
      
      	* gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
      	  x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
      	argument to the window_at_pointer() field of
      	GdkPointerHooks. (Patch from Erwann Chenede)
      
      	* gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
      	to 6 pointers.
      86dbeabc
    • Matt Wilson's avatar
      must include glib-object.h only · 1419815e
      Matt Wilson authored
      2001-11-17  Matt Wilson  <msw@redhat.com>
      
      	* gtk/gtkenums.h: must include glib-object.h only
      1419815e
    • Owen Taylor's avatar
      Reprioritize key bindings in order of visibility - mnemonics, then · adca28f8
      Owen Taylor authored
      Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
      	key bindings in order of visibility - mnemonics, then
      	accelerators, then send key to the focus widget, then
      	bindings on the GtkWindow.
      
      	* gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c:
      	Removed the xoffset, yoffset fields of GtkLayout which were
      	identically zero for compat with 1.2, but were no longer
      	compatible with	all uses of these fields in 1.2.
      
      	* gtk/gtkwindow.c (gtk_window_set_default): Remove
      	unused variable.
      adca28f8
    • Owen Taylor's avatar
      We no longer need to create the signals here ... they come from the · 3f376d75
      Owen Taylor authored
      Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* tests/testtreeview.c (gtk_tree_model_types_get_type):
      	We no longer need to create the signals here ... they
      	come from the interface.
      
      	* gtk/maketypes.awk: Use GType, not GtkType in output.
      
      	* gtk/gtktypeutils.h: Mark virtually all of this
      	file deprecated.
      
      	* gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
      	the only use of this function is the GtkArg using
      	GtkCallbackMarshal, since destroy notification is
      	silly here.
      3f376d75
  4. 17 Nov, 2001 5 commits
    • Owen Taylor's avatar
      Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2; · a036c6e5
      Owen Taylor authored
      Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
      	gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
      	only for compatibility with GTK+-1.2; and deprecate it;
      	put all marshalers we actually use into gtkmarshalers.list
      	and use the _gtk_marshal_ prefix for these marshalers.
      a036c6e5
    • Murray Cumming's avatar
      gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): · 3a346802
      Murray Cumming authored
      The first parameters of the signals are now registered as GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
      3a346802
    • Tor Lillqvist's avatar
      Build separate runtime and developer packages. · 6eace48c
      Tor Lillqvist authored
      2001-11-17  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk-zip.sh.in: Build separate runtime and developer
      	packages.
      
      	* gtk/gtk.def: Reflect recent accelerator-related changes.
      6eace48c
    • Owen Taylor's avatar
      Move notification of "has_default" to here, so it is safe to call · 61b2f259
      Owen Taylor authored
      Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.c (gtk_window_set_default): Move
      	notification of "has_default" to here, so it
      	is safe to call gtk_window_set_default() instead
      	of gtk_widget_grab_default().
      
      	* gtk/gtkwindow.c (gtk_window_set_focus): Make it call
      	gtk_widget_grab_focus(), which then calls
      	_gtk_widget_internal_set_focus(). This makes
      	gtk_window_set_focus() a safe way of both setting
      	and unsetting the focus widget.
      
      	* gtk/gtkwidget.c (gtk_widget_propagate_state): Use
      	gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
      	to find the toplevel.
      
      	* gtk/gtkwindow.h: Move gtk_window_set_focus/default
      	from the "internal functions" section.
      61b2f259
    • Matthias Clasen's avatar
      Updates. · f2d5aec4
      Matthias Clasen authored
              * gdk/tmpl/event_structs.sgml: Updates.
      
              * gdk/tmpl/windows.sgml: Document GdkFilterFunction, GdkFilterReturn
              and GdkXEvent, add markup.
      f2d5aec4
  5. 16 Nov, 2001 6 commits
    • Jacob Berkman's avatar
    • jacob berkman's avatar
      add some no-indicator radio buttons · 8d99d6af
      jacob berkman authored
      2001-11-16  jacob berkman  <jacob@ximian.com>
      
      	* tests/testgtk.c (create_radio_buttons): add some no-indicator
      	radio buttons
      
      	* gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
      	initially active, also initially be depressed
      	(gtk_radio_button_clicked): also update our depressed state
      8d99d6af
    • Owen Taylor's avatar
      Propagate key press events not just to focus/window but also to · c344b3f9
      Owen Taylor authored
      Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
              key press events not just to focus/window but also to
              intermediate widgets.
      
              * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
              to switch pages. (Needs some work on handling focus
              when switching pages.)
      c344b3f9
    • Owen Taylor's avatar
      Fix child allocations to be relative to widget position and some drawing · 0f9b2422
      Owen Taylor authored
      Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtknotebook.c: Fix child allocations to be relative to
      	widget position and some drawing bugs.
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
      	with reading uninitialized variable.
      0f9b2422
    • Owen Taylor's avatar
      Cal gdk_window_invalidate_maybe_recurse() for recursion. (Soeren Sandmann) · ab14a31f
      Owen Taylor authored
      Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
      	gdk_window_invalidate_maybe_recurse() for recursion.
      	(Soeren Sandmann)
      ab14a31f
    • Owen Taylor's avatar
      Make Menu items NO_WINDOW widgets. · 1431d765
      Owen Taylor authored
      Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
      	gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
      	NO_WINDOW widgets.
      
      	* gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
      	cleanup.
      
      	* gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
      	we are drawing in a window when drawing the paned handle.
      1431d765