1. 19 Nov, 2001 10 commits
    • 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
    • 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
  2. 18 Nov, 2001 7 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
    • 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
  3. 17 Nov, 2001 4 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
  4. 16 Nov, 2001 6 commits
    • 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
      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
    • Sven Neumann's avatar
      demos/gtk-demo/appwindow.c reduce compiler warnings · 02788416
      Sven Neumann authored
      2001-11-16  Sven Neumann  <sven@gimp.org>
      
      	* demos/gtk-demo/appwindow.c
      	* demos/gtk-demo/menus.c: reduce compiler warnings
      02788416
    • Owen Taylor's avatar
      Remove unused callback to make things compile with · 89baa6c0
      Owen Taylor authored
      Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* demos/gtk-demo/main.c (button_press_event_cb): Remove
      	unused callback to make things compile with
      	gtk_tree_view_path_at_pos_change().
      89baa6c0
  5. 15 Nov, 2001 6 commits
    • Jonathan Blandford's avatar
      maybe fix #64160 Also, forgot to save gtktreeview.h · 16049019
      Jonathan Blandford authored
      Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
      Also, forgot to save gtktreeview.h
      16049019
    • Matthias Clasen's avatar
      Move '.' out of quote. (#64407) · cea7df47
      Matthias Clasen authored
              * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
      cea7df47
    • Jonathan Blandford's avatar
      New function to get a GdkWindow to compare event->window to. · 2fdf3018
      Jonathan Blandford authored
      Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
      	to get a GdkWindow to compare event->window to.
      
      	* gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
      	the signal for lateral motion too, #64361
      
      	* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
      	arg as it is useless, #64137
      2fdf3018
    • Owen Taylor's avatar
      Some small drawing fixes for scroll arrows. · 91a34f5d
      Owen Taylor authored
      Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
      91a34f5d
    • Owen Taylor's avatar
      Cal gdk_window_invalidate_maybe_recurse() for recursion. (Soeren Sandmann) · b27345fe
      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)
      
       	* gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
      
      	* gtk/gtkcontainer.c (gtk_container_expose): Call
      	gtk_container_forall() not _foreach() to propagate,
      	since we need to propagate exposes to internal children
      	as well.
      
      	* gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events):
      	Remove the restriction of only being able to call these
      	on window widgets, since we have lots of NO_WINDOW widgets
      	with windows now; for add events, recurse over the children
      	of widget->window to find one owned by the widget.
      
      	* gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
      	window to catch events.
      
      	* gtk/gtktogglebutton.[ch]: Remove the code for switching
      	between NO_WINDOW and WINDOW widgets based on the mode.
      
      	* gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
      	gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
      
      	* gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
      
      	* gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
      	change for range.
      
      	* gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
      
      	* docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
      b27345fe
    • Owen Taylor's avatar
      Patch from Murray Cumming to add "message_type" and "buttons" CONSTRUCT · 701df64d
      Owen Taylor authored
      Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
      	"message_type" and "buttons" CONSTRUCT properties. (#64069)
      
      	* tests/testsocket.c: Expand tests to add a "local passive
      	child" (Test case for #64428)
      701df64d
  6. 14 Nov, 2001 7 commits
    • jacob berkman's avatar
      create the label with a mnemonic · d5ff32d7
      jacob berkman authored
      2001-11-14  jacob berkman  <jacob@ximian.com>
      
      	* gtk/gtkgamma.c (button_clicked_callback): create the label with
      	a mnemonic
      d5ff32d7
    • Sven Neumann's avatar
      make it compile without warnings. · a1361b57
      Sven Neumann authored
      2001-11-15  Sven Neumann  <sven@gimp.org>
      
      	* tests/testgtk.c: make it compile without warnings.
      a1361b57
    • Alexander Larsson's avatar
      Don't recalculate the layout on each gkt_label_ensure_layout () for · cfb30b2d
      Alexander Larsson authored
      2001-11-14  Alex Larsson  <alexl@redhat.com>
      
      	* gtk/gtklabel.c:
      	Don't recalculate the layout on each gkt_label_ensure_layout () for
      	wrapped labels.
      cfb30b2d
    • Jonathan Blandford's avatar
      Return the currently selected column when we get the column, #64380 · 99fea7f9
      Jonathan Blandford authored
      Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
      	the currently selected column when we get the column, #64380
      
      	* gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
      	to cancel CellRendererText editting, #63613
      
      	* gtk/gtkcellrenderertext.c: ditto
      
      	* gtk/gtkcellrenderertext.h: formatting changes
      99fea7f9
    • Matthias Clasen's avatar
      Rearrange docs (#64566) · 3470c634
      Matthias Clasen authored
              * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
      
              * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
      
              * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
      
              * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
      
              * gtk/gtklabel.c: Documentation fixes (#64452)
      
              * docs/reference/gdk/Makefile.am (MKDB_OPTIONS),
              docs/reference/gdk-pixbuf/Makefile.am (MKDB_OPTIONS),
              docs/reference/gtk/Makefile.am (MKDB_OPTIONS): Add --sgml-mode.
      
              * docs/reference/gdk-pixbuf/tmpl/file-saving.sgml,
              docs/reference/gdk-pixbuf/tmpl/module_interface.sgml,
              docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf-xlib-rgb.sgml: Consistent short descriptions.
              * docs/reference/gtk/tmpl/gtkprogressbar.sgml: Remove duplicate docs. (#64469)
      
              * docs/reference/gtk/gtk-sections.txt: Add missing TITLEs (#64459, #6456
      3470c634
    • Daniel Egger's avatar
      Remove unused static function. (xpm_skip_string): Dito. · 5694bcb0
      Daniel Egger authored
      2001-11-14  Daniel Egger  <degger@fhm.edu>
      
      	* gdk-pixbuf/io-xpm.c:
      	(xpm_skip_whitespaces): Remove unused static function.
      	(xpm_skip_string): Dito.
      	(xpm_extract_color): Declare const variable const to avoid warnings.
      
      	* gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
      
      	* gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
      
      	* gtk/gtksocket.c: Change type of mask to g_message to %ld for
      	a long.
      5694bcb0
    • Owen Taylor's avatar
      Back out accidental commit of debugging timing code · 82a6dc93
      Owen Taylor authored
      Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
      	out accidental commit of debugging timing code
      82a6dc93