1. 09 Mar, 2005 1 commit
  2. 08 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Use G_GNUC_NULL_TERMINATED where appropriate. (#165682, Marc Meissner) · c8830f25
      Matthias Clasen authored
      2005-03-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkwidget.h:
      	* gtk/gtktreeview.h:
      	* gtk/gtktreeviewcolumn.h:
      	* gtk/gtktextbuffer.h:
      	* gtk/gtkobject.h:
      	* gtk/gtkfilechooserdialog.h:
      	* gtk/gtkdialog.h:
      	* gtk/gtkcontainer.h:
      	* gtk/gtkcelllayout.h:
      	* gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
      	appropriate.  (#165682, Marc Meissner)
      c8830f25
  3. 28 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · c50066b4
      Matthias Clasen authored
      2004-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkwidget.h (gtk_requisition_get_type):
      	* gtk/gtktypeutils.h (gtk_identifier_get_type):
      	* gtk/gtktexttag.h (gtk_text_attributes_get_type):
      	* gtk/gtkstyle.h (gtk_border_get_type):
      	* gtk/gtkfilesystemmodel.h (_gtk_file_system_model_get_type):
      	* gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_get_type):
      	* gtk/gtkfilechooserembed.h (_gtk_file_chooser_embed_get_type):
      	* gtk/gtkfilechooserdefault.h (_gtk_file_chooser_default_get_type):
      	* gtk/gtkaccelmap.h (gtk_accel_map_get_type): Mark as const.
      
      	* gtk/gtk.symbols:
      	* gtk/Makefile.am: Mark get_type() functions
      	generated by glib-mkenums as const.
      c50066b4
  4. 03 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Fix #149191, reported by Morten Welinder: · 764bf6bb
      Matthias Clasen authored
      Tue Aug  3 18:16:55 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Fix #149191, reported by Morten Welinder:
      
      	* gtk/gtkmain.c: Include gtkclipboard.h,
      	* gtk/gtkwidget.h: Declare _gtk_widget_grab_notify, not
      	_gtk_widget_emit_grab_notify.
      764bf6bb
  5. 10 May, 2004 1 commit
  6. 26 Feb, 2004 1 commit
    • Owen Taylor's avatar
      Fixes from Torsten Schoenfeld. · be71d625
      Owen Taylor authored
      Thu Feb 26 16:36:38 2004  Owen Taylor  <otaylor@redhat.com>
      
              Fixes from Torsten Schoenfeld.
      
              * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label):
              Fix name in doc comment.
      
              * gtk/gtkwidget.h: gtk_widget_list_mnemonic_labels(),
              not get_mnemonic_labels.
      be71d625
  7. 25 Feb, 2004 1 commit
  8. 26 Jan, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #105497; constify uses of GdkColor. · 5ebb6b04
      Federico Mena Quintero authored
      2004-01-26  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #105497; constify uses of GdkColor.
      
      	* gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
      	(gdk_gc_set_rgb_bg_color): Constify.
      	(gdk_gc_set_foreground): Constify.
      
      	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
      	* gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
      	* gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
      
      	* gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
      	* gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
      
      	* gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
      	(gdk_draw_layout_with_colors): Constify.
      
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
      	(gdk_pixmap_colormap_create_from_xpm): Constify.
      	(gdk_pixmap_create_from_xpm): Constify.
      	(gdk_pixmap_colormap_create_from_xpm_d): Constify.
      	(gdk_pixmap_create_from_xpm_d): Constify.
      
      	* gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
      
      	* gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
      	(gtk_clist_set_background): Constify.
      
      	* gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
      	(gtk_color_button_set_color): Constify.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
      	Constify and add a check for color != NULL.
      	(gtk_color_selection_get_current_color): Add a check for color != NULL.
      	(gtk_color_selection_set_previous_color): Constify and add a check
      	for color != NULL.
      	(gtk_color_selection_get_previous_color): Add a check for color != NULL.
      
      	* gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
      	(gtk_ctree_node_set_background): Constify.
      
      	* gtk/gtktext.c (gtk_text_insert): Constify.
      	(insert_text_property): Constify.
      	(text_properties_equal): Constify.
      	(new_text_property): Constify.
      
      	* gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
      	(gtk_widget_modify_fg): Constify.
      	(gtk_widget_modify_bg): Constify.
      	(gtk_widget_modify_text): Constify.
      	(gtk_widget_modify_base): Constify.
      5ebb6b04
  9. 27 Nov, 2003 1 commit
    • Tim Janik's avatar
      allow accel activation depending on sensitivity and the attach widget. · 448b576d
      Tim Janik authored
      Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenu.c: allow accel activation depending on sensitivity
              and the attach widget.
      
              * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
              sensitivity and the parent menu.
      
              * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
              checks whether accelerators may activate a widget. the default handler
              demands the widget be sensitive and visible+viewable.
      
              * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
      448b576d
  10. 21 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Changes to make cross-process merging feasible: · d381967d
      Matthias Clasen authored
      2003-09-21  Matthias Clasen  <maclas@gmx.de>
      
      	Changes to make cross-process merging feasible:
      
      	* gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
      	merged UI definition. Remove the "changed" signal, since its role
      	is now filled by "notify::ui". Instead add a "actions-changed" signal
      	which gets emitted when the set of actions changes.
      
      	* gtk/gtktoggleactionprivate.h:
      	* gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
      	Add a "draw_as_radio" property to toggle actions so that they can be
      	used as proxies for radio actions much like the "draw_as_radio"
      	property on check menu items enables them to operate as proxies for
      	radio actions.
      
      	Prevent the "show_all" trap for action-based menus (see
      	http://mail.gnome.org/archives/gtk-devel-list/2003-September/
      	msg00260.html):
      
      	* gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
      	calls from static functions.
      
      	* gtk/gtkuimanager.c (update_node):
      	* gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
      	widgets whose visibility is externally controlled.
      
      	* gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
      	"no_show_all" property with setter and getter. When TRUE, it keeps
      	gtk_widget_{hide,show}_all() from modifying the visibility of the
      	widget and its children.
      d381967d
  11. 11 Aug, 2003 1 commit
  12. 09 Aug, 2003 1 commit
  13. 18 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      Add this API. · 5171637f
      Soeren Sandmann authored
      Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
      	API.
      5171637f
  14. 10 Nov, 2002 1 commit
    • Soeren Sandmann's avatar
      gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator) · ee6029e7
      Soeren Sandmann authored
      Sun Nov 10 21:29:03 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
      	* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator)
      
      	Make sure check and option marks are drawn insensitive when the
      	widgets are insensitive.
      
      	(#92548, patch from Tim Evans)
      
      Sun Nov 10 21:25:04 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): Remove _gtk_reserved8
      	to restore binary compatibility.
      ee6029e7
  15. 08 Nov, 2002 1 commit
    • Soeren Sandmann's avatar
      docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml · b1165617
      Soeren Sandmann authored
      Fri Nov  8 20:14:52 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gdk/tmpl/dnd.sgml
      	docs/reference/gdk/tmpl/drawing.sgml
      	docs/reference/gdk/tmpl/gdk-unused.sgml
      	docs/reference/gdk/tmpl/gdkdisplay.sgml
      	docs/reference/gdk/tmpl/general.sgml
      	docs/reference/gdk/tmpl/input_devices.sgml
      	docs/reference/gdk/tmpl/selections.sgml
      	docs/reference/gtk/tmpl/gtkcellrenderer.sgml
      	docs/reference/gtk/tmpl/gtkcurve.sgml
      	docs/reference/gtk/tmpl/gtkdnd.sgml
      	docs/reference/gtk/tmpl/gtkitemfactory.sgml
      	docs/reference/gtk/tmpl/gtkmenu.sgml
      	docs/reference/gtk/tmpl/gtkoldeditable.sgml
      	docs/reference/gtk/tmpl/gtkoptionmenu.sgml
      	docs/reference/gtk/tmpl/gtkpreview.sgml
      	docs/reference/gtk/tmpl/gtkselection.sgml
      	docs/reference/gtk/tmpl/gtksocket.sgml
      	docs/reference/gtk/tmpl/gtkstyle.sgml
      	docs/reference/gtk/tmpl/gtktextbuffer.sgml
      	docs/reference/gtk/tmpl/gtktreemodel.sgml
      	docs/reference/gtk/tmpl/gtkwidget.sgml gdk/gdk.h gdk/gdkdisplay.c
      	gdk/gdkdisplay.h gdk/gdkdnd.h gdk/gdkdraw.c gdk/gdkdrawable.h
      	gdk/gdkinput.h gdk/gdkselection.h gdk/x11/gdkdisplay-x11.c
      	gdk/x11/gdkdnd-x11.c gdk/x11/gdkselection-x11.c gtk/gtkcurve.h
      	gtk/gtkdnd.h gtk/gtkitemfactory.c gtk/gtkitemfactory.h
      	gtk/gtkmenu.h gtk/gtkoldeditable.c gtk/gtkoldeditable.h
      	gtk/gtkoptionmenu.h gtk/gtkplug.c gtk/gtkplug.h gtk/gtkpreview.h
      	gtk/gtkrange.h gtk/gtkselection.c gtk/gtkselection.h
      	gtk/gtksocket.c gtk/gtksocket.h gtk/gtkstyle.c gtk/gtkstyle.h
      	gtk/gtktextlayout.c gtk/gtktextlayout.h gtk/gtktreemodel.c
      	gtk/gtktreemodel.h gtk/gtkwidget.h
      
      	Trivial s/foo/foo_/ fixes to make gtk.h includable with -Wshadow
      	without warnings. (#91680)
      b1165617
  16. 07 Nov, 2002 1 commit
    • Owen Taylor's avatar
      Add ::screen-changed signal. · 100286ac
      Owen Taylor authored
      Thu Nov  7 12:53:08 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwidget.[ch] gtk/gtkwindow.c gtk/gtkinvisible.c:
              Add ::screen-changed signal.
      
              * gtk/gtkfontsel.c gtk/gtktoolbar.c: Use ::screen-changed
              signal to simplify logic.
      100286ac
  17. 13 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · aa54cfee
      Manish Singh authored
      Sun Oct 13 13:43:16 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkcurve.[ch] gtk/gtkgamma.[ch] gtk/gtklayout.[ch]
              gtk/gtkwidget.[ch] modules/input/gtkimcontextxim.c
              modules/input/imam-et.c modules/input/imcyrillic-translit.c
              modules/input/imhangul.c modules/input/iminuktitut.c
              modules/input/imipa.c modules/input/imthai-broken.c
              modules/input/imti-er.c modules/input/imti-et.c
              modules/input/imviqr.c: Deprecation cleanup
      
              * modules/input/Makefile.am: Added disable deprecation flags
      aa54cfee
  18. 10 Aug, 2002 1 commit
    • Soren Sandmann's avatar
      Minor documentation fixes · 77eee887
      Soren Sandmann authored
      2002-08-10  Soren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gtk/tree_widget.sgml,
      	docs/reference/gtk/tmpl/gtkdialog.sgml,
      	docs/reference/gtk/tmpl/gtkentry.sgml,
      	docs/reference/gtk/tmpl/gtkfilesel.sgml,
      	docs/reference/gtk/tmpl/gtkfontsel.sgml,
      	docs/reference/gtk/tmpl/gtkfontseldlg.sgml,
      	docs/reference/gtk/tmpl/gtktreemodel.sgml,
      	docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c,
      	gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c,
      	gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c,
      	gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c,
      	gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c,
      	gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c,
      	gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c,
      	gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c,
      	gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c,
      	gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c,
      	gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c,
      	gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c,
      	gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c,
      	gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h,
      	gtk/gtkwindow.c:
      
      	Minor documentation fixes
      
      	(#89254, patch from Brett Nash;
      	 #85809, patch from daten@dnetc.org;
      	 #76391, patch from Ross Burton;
      	 #74559, Manuel Clos;
      	 #73569, #72005, Alexey A. Malyshev;
      	 #70061, patch from Dennis Bj"orklund;
      	 #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov;
      	 #78932, Vitaly Tishkov, patch from Ross Burton;
      	 #73306)
      77eee887
  19. 05 May, 2002 1 commit
    • Matthias Clasen's avatar
      Bump version to 2.1.0, binary, interface age 0. · c272baf6
      Matthias Clasen authored
      	* configure.in: Bump version to 2.1.0, binary, interface age 0.
      
      	* gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
      	(gtk_container_class_find_child_property): Document.
      
      	* gtk/gtkwidget.c:
      	* gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
      	and gtk_widget_class_find_child_property.  (#80652)
      c272baf6
  20. 29 Apr, 2002 1 commit
    • Alexander Larsson's avatar
      Integrate Erwann Chenede's multihead changes for the gtk/ directory. · 4632fb81
      Alexander Larsson authored
      Mon Apr 29 18:28:00 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Integrate Erwann Chenede's multihead changes for the gtk/ directory.
      
      	* gtk/gtkclipboard.[ch]: Add gtk_clipboard_get_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtkcolorsel.[ch]: Add
      	gtk_color_selection_set_change_palette_with_screen_hook () [ugh!]
      	make up for non-multihead safety of
      	gtk_color_selection_set_change_palette_hook()
      
      	* gtk/gtkinvisible.[ch] gtk/gtkmenu.[ch] gtkwindow.[ch]: Add
      	gtk_{invisible,menu,window}_set_screen(); add "screen" properties
      	for GtkWindow and GtkMenu.
      
      	* gtk/gtkplug.[ch]: Add gtk_plug_construct_for_display(),
      	gtk_plug_new_for_display(). Multihead fixes.
      
      	* gtk/gtkselection.[ch]: Add gtk_selection_owner_set_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtksettings.[ch]: Add gtk_settings_get_for_screen(), get
      	rid of now-useless gtk_settings_constructor().
      
      	* gtk/gtkstyle.[ch]: Add gtk_style_get_font_for_display(), fix
      	check/radio button indicators bitmap handling to be multihead
      	safe.
      
      	* gtk/gtkwidget.[ch]: Add gtk_widget_get_screen(), gtk_widget_has_screen(),
      	gtk_widget_get_display(), gtk_widget_get_clipboard(),
      	gtk_widget_get_root_window().
      
      	* gtk/gtkbindings.c gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkcombo.c
      	gtk/gtkctree.c gtk/gtkdnd.c gtk/gtkfilesel.c gtk/gtkgamma.c
      	gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtkimcontext.c gtk/gtklabel.c
      	gtk/gtklist.c gtk/gtkmain.c gtk/gtkmenuitem.c gtk/gtkmenushell.c
      	gtk/gtknotebook.c gtk/gtkoldeditable.c gtk/gtkoptionmenu.c
      	gtk/gtkpaned.c gtk/gtkpreview.c gtk/gtksocket.c gtk/gtktext.c
      	gtk/gtktextbuffer.c gtk/gtktextview.c gtk/gtktipsquery.c
      	gtk/gtktooltips.c gtk/gtktreeview.c gtk/gtktreeviewcolumn.c:
      	misc mechanical multihead-safety fixes.
      
      	* gtk/gtkclipboard.c: Use a GtkImage rather than a pixmap for
      	the dropper, look up the color palette only at realization time,
      	other multihead fixes.
      
      	* gtk/gtkcombo.c (gtk_combo_unrealize): Popdown the list when
      	unrealizing.
      
      	* gtk/gtkentry.c: Only claim ownership of the primary selection
      	when realized, misc multihead fixes.
      
      	* gtk/gtkfontsel.c: Only fill in fonts when attached to a screen,
      	fix gtk_font_selection_get_font() for multihead.
      
      	* gtk/gtkgc.c: make the depth => drawable hash per-screen.
      
      	* gtk/gtkinvisible.c: Add a constructor that realizes the
      	widget, so we get a realized widget with g_object_new() as
      	well gtk_invisible_new() as before.
      
      	* gtk/gtkmain.c: Get rid of unused gtk_visual/gtk_colormap
      	variables.
      
      	* gtk/gtktextdisplay.c: Add warnings if stipple bitmaps
      	are used on the wrong screen.
      
      	* gtk/gtktoolbar.c: Make handling of GtkSettings-based layout
      	read properties and connect to settings when the screen is changed,
      	rather than on init/finalize.
      
      	* gtk/gtkwindow.c: Fix icon handing to be multihead safe ...
      	default icon pixmaps/mask are only shared between windows on the
      	same screen. Misc multihead fixes.
      
      Sat Apr 27 13:49:53 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkclipboard.c (gtk_clipboard_get_for_display):
      	Update docs to reference GDK_SELECTION_CLIPBOARD rather GDK_NONE.
      
      2002-04-29  Alex Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkproperty-fb.c (gdk_property_get):
      	Fix silly bug, noticed by Sven Neumann.
      
      Sun Apr 28 22:43:55 2002  Jonathan Blandford  <jrb@gnome.org>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): Fix
      	so that you can set a new sort func.
      4632fb81
  21. 16 Apr, 2002 1 commit
    • Tim Janik's avatar
      don't install/change accelerators from locked accel groups. · b0d72c4d
      Tim Janik authored
      Tue Apr 16 07:53:49 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenu.c (gtk_menu_key_press): don't install/change accelerators
              from locked accel groups.
      
              * gtk/gtkwidget.c (_gtk_widget_get_accel_path): export whether the
              accel path is from a locked accel group.
      b0d72c4d
  22. 02 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Switch style of stamp file usage. · f832e348
      Owen Taylor authored
      Sat Mar  2 13:26:58 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/Makefile.am: Switch style of stamp file usage.
      
              * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported
              enumeration/fags TYPE variables over to macros for get_type() functions,
              for lazy definition and to get rid of expensive relocations.
      
              * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch]
              gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch]
              gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type
              definitions over manually coded get_type() functions.
      
              * gtk/gtk.def: Updates for above
      
              * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}:
              Remove from CVS, no longer used.
      
              * configure.in: Remove checks for awk.
      f832e348
  23. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Massive padding addition to class structures. · e5d1ea8c
      Owen Taylor authored
      Sat Feb 23 11:54:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/*.h gdk/*.h: Massive padding addition to class structures.
      
              * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
      e5d1ea8c
  24. 07 Feb, 2002 2 commits
    • Padraig O'Briain's avatar
      Change show_help signal to return gboolean instead of void. This allows · 49ea86bc
      Padraig O'Briain authored
      * gtk/gtkwidget.[ch]:
      Change show_help signal to return gboolean instead of void. This
      allows the keypress which invokes the signal to be propagated to the
      focus widgets ancestors if not handled by the focus widget.
      
      * gtk/gtktoolips.[ch]
      Change _gtk_tooltips_show_tip () to return a gboolean indicating
      whether widget has tooltip to display.
      49ea86bc
    • Padraig O'Briain's avatar
      Change popup_menu signal to return gboolean instead of void. This allows · 5bc23500
      Padraig O'Briain authored
      * gtk/gtkwidget.[ch]:
      Change popup_menu signal to return gboolean instead of void. This
      allows the keypress which invokes the signal to be propagated to the
      focus widgets ancestors if not handled by the focus widget.
      
      * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtktextview.c:
      Change signature of popup_menu signal handler to return gboolean
      instead of void and return TRUE in the signal handler
      5bc23500
  25. 30 Jan, 2002 2 commits
    • Owen Taylor's avatar
      Export gtk_widget_set_accel_path(). · eb5f7ace
      Owen Taylor authored
      Tue Jan 29 22:31:07 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwidget.[ch] gtkmenuitem.c gtkitemfactory.c: Export
              gtk_widget_set_accel_path().
      
              * gtk/gtk.def: Add gtk_widget_set_accel_path.
      eb5f7ace
    • Owen Taylor's avatar
      Consistently use GdkModifierType. (#66950, Mark Patton) · a75a0d49
      Owen Taylor authored
      Tue Jan 29 21:50:28 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkaccelmap.[ch] gtk/gtkbindings.[ch] gtk/gtkwidget.[ch]:
              Consistently use GdkModifierType. (#66950, Mark Patton)
      
              * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
              For consistency with gtk_button_new_from_stock(), fall back
              to gtk_image_menu_item_new_with_mnemnonic(). (#65944,
              Havoc Pennington)
      
              * gtk/gtkitemfactory.[ch] (gtk_item_factory_path_from_widget):
              Make G_CONST_RETURN. (#68527, Matt Wilson)
      a75a0d49
  26. 09 Jan, 2002 1 commit
  27. 20 Nov, 2001 1 commit
    • Tim Janik's avatar
      applied patch from owen to get rid of accel map notifiers. changed things · 9800f731
      Tim Janik authored
      Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
      
      	* applied patch from owen to get rid of accel map notifiers.
      	changed things to fix reentrancy and API as discussed on gtk-devel.
      
      	* gtk/gtkaccelgroup.[hc]:
      	(gtk_accel_group_finalize): unregister this accel group from all
      	accel map paths.
      	(accel_closure_invalidate): handle invalidation of closures by
      	disconnecting their accelerators.
      	(quick_accel_add): move closure connection and changed notification
      	into this function to reduce code duplication. don't emit change
      	notification on closurers without accelerators.
      	(quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
      	for a GtkAccelGroupEntry.
      	(gtk_accel_group_connect): get rid of the accel_path_quark argument.
      	(gtk_accel_group_connect_by_path): new function to add accelerators
      	with an accel path.
      	(gtk_accel_group_disconnect_closure): new function, disconnect a
      	closure from of an accel group.
      	(gtk_accel_group_disconnect): loop over all closure for a accel_ley,
      	accel_mods pair and remove them.
      	(_gtk_accel_group_reconnect): new function that basically does
      	gtk_accel_group_disconnect_closure() and
      	gtk_accel_group_connect_by_path() once an accel path changed.
      	(gtk_accel_groups_disconnect_closure): remove this, there's
      	gtk_accel_group_disconnect_closure().
      
      	* gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
      	nuke notifiers.
      	(_gtk_accel_path_is_valid): make this non-static for
      	gtkwidget.c and gtkaccelgroup.c assertions.
      	(gtk_accel_map_add_notifer): removed this function.
      	(gtk_accel_map_remove_notifer): same.
      	(_gtk_accel_map_add_group):
      	(_gtk_accel_map_remove_group): (un-)register accel groups, with
      	accel paths for correct propagation.
      	(gtk_accel_map_add_entry): return void.
      	(gtk_accel_map_lookup): return gboolean instead of GQuark.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
      	set accel_path on widgets.
      
      	* gtk/gtkwidget.[hc]:
      	(accel_path_changed): got rid of this, changes are handled by
      	accel maps internally now.
      	(_gtk_widget_set_accel_path): get things to work without notifiers.
      	(gtk_widget_list_accel_closures): list accel closures of a widget.
      
      	* gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
      9800f731
  28. 13 Nov, 2001 1 commit
    • Tim Janik's avatar
      added gtkaccelmap.sgml. other updates. · d07573c0
      Tim Janik authored
      Mon Nov 12 23:06:38 2001  Tim Janik  <timj@gtk.org>
      
              * added gtkaccelmap.sgml. other updates.
      
      Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
      
      	* gtk/maketypes.awk: fix type utils generation on unix.
      
      	* gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
      	registry.
      
      	* gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
      	removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
      	gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
      	gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
      	gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
      	introduced ::accel_changed signal for change notification, and
      	gtk_accel_group_connect/disconnect to connect closures to accel groups.
      	made gtk_accel_group_attach/detach and gtk_accel_group_activate private
      	functions.
      	deprecated gtk_accel_group_ref/unref.
      
      	* gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
      	to accel group changed notification and basically operate on closures.
      	removed gtk_accel_label_get_accel_object and
      	gtk_accel_label_set_accel_object.
      	introduced gtk_accel_label_set_accel_closure, and for convenience,
      	gtk_accel_label_set_accel_widget.
      
      	* gtk/gtkitemfactory.[hc]: removed accelerator propagation code
      	which mostly moved into gtkaccelmap.[hc].
      	removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
      	and gtk_item_factory_print_func.
      
      	* gtk/gtkmain.c: call _gtk_accel_map_init().
      
      	* gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
      	that associates an accelerator path with menu items, through which
      	persistent accelerator settings on menu items are enabled.
      
      	* gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
      	paths of menu item can be default constructed to allow installation
      	of accelerators on menu items that don't come with an accelerator
      	binding by default.
      
      	* gtk/gtksettings.c: fix STRING type rc settings by special casing
      	them appropriately in the parser.
      
      	* gtk/gtksignal.[hc]: allow a class function offset of 0 for
      	gtk_signal_newv().
      
      	* gtk/gtkwidget.[hc]: accelerator API revamp.
      	removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
      	gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
      	gtk_widget_(un)lock_accelerators.
      	accelerators maintained through gtk_widget_add/remove_accelerator()
      	are not runtime changable now, the correct sequence to setup a
      	widget for runtime changable accelerators is now:
      	  gtk_accel_map_add_entry(accel_path, key, mods);
      	  _gtk_widget_set_accel_path(widget, accel_path, accel_group);
      
      	* gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
      	group changes (as well as mnemonic changes) through the new signal
      	::accels_changed.
      
      Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
      	GString->string conversions.
      d07573c0
  29. 04 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Add a function gdk_window_invalidate_maybe_recurse() for use in "shallow · 21457ced
      Owen Taylor authored
      Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse()
              for use in "shallow invalidation" of a widget. (Windows belonging
              to the widget, but not to the widget's children)
      
              * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
              flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
              up on ancestors up to the resize container on queue_resize. Size
              requests only actually take place if GTK_REQUEST_NEEDED, size
              allocations only take place if GTK_ALLOC_NEEDED or the size
              changed.
      
              * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
              container->resize_widgets and the RESIZE_NEEDED flag since the
              above flags are sufficient to figure out what needs to be
              resized/reallocated. Remove code manipulating
              container->resize_widget.
      
              * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
              allows widgets to turn off being automatically invalidated is when
              they are resized.
      
              * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
              a widget is resized or moved is "shallow" as described above -
              only the windows that need to be invalidated are invalidated.
      
              * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt:
              Make these widget's init functions call
              gtk_widget_set_redraw_on_allocate(widget,FALSE).
      
              * gtk/gtkwindow.c (gtk_window_configure_event): Call
              _gtk_container_queue_resize(), since we don't want
              redrawing. (Probably could be done for other
              calls to gtk_widget_queue_resize() in gtkwindow.c,
              but this is the most important one.)
      
              * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
              gtk_widget_queue_draw() - size_allocate() handles
              that as appropriate.
      
              * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
              of queue_clear() to avoid invalidating children.
      21457ced
  30. 16 Oct, 2001 1 commit
    • Owen Taylor's avatar
      Add a utility function to translate coordinates relative to one widget's · 1ebe3b51
      Owen Taylor authored
      Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
      	a utility function to translate coordinates relative to
      	one widget's allocation to coordinates relative to another
      	widget's allocation.
      
      	* gtk/gtkradiobutton.c: Add a special ->focus() implementation
      	that:
      	 - only accepts external focus if there is no active
         	   member of the group or the button is active.
      	 - makes arrow keys move the active button as well
      	   as the focus
      	 - make tab tab out directly.
      	This makes a radio button group act as a single focus location.
      	(#53577).
      
      	* gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
      	it was only a small optimization that didn't matter and made
      	things more complicated.
      
      	* gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
      	sorter for FOCUS_TAB as we did for the other focus directions,
      	sort by center of widgets, not upper-left corner. (Shouldn't
      	matter in general.)
      
      	* gtk/gtkcontainer.c: Restructure code to remove duplicate code
      	from the different types of focusing: encapsulate sorting the
      	widgets for the focus direction into one routine
      	(gtk_container_focus_sort()) and then share the work of moving the
      	focus between the different focus directions.
      
      	* gtk/gtkcontainer.c: Fix bug where arrow navigation might not
      	work correctly with focus chains containing non-immediate
      	children. Sorting was being done using allocation coordinates for
      	each widget in the focus chain, and if there were intermediate
      	window-widgets, these allocations would not be in the same
      	coordinate system.
      1ebe3b51
  31. 19 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Add xgettext:no-c-format comment to to handle '99% of the time. (#60473, · 2893ea15
      Owen Taylor authored
      Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.c: Add xgettext:no-c-format comment to
      	to handle '99% of the time. (#60473, reported by Christian Rose)
      
      	* gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
      	which no longer exists. (#60379, reported by Vitaly Tishkov)
      2893ea15
  32. 07 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Make the default default colormap the GdkRGB colormap, not the system · 6341c2f9
      Owen Taylor authored
      Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_get_default_colormap):
      	Make the default default colormap the GdkRGB colormap,
      	not the system colormap.
      
      	* gtk/gtkinvisible.c (gtk_invisible_init)
      	  gtk/gtkwindow.c (gtk_window_init): Set the current
      	colormap, as returned by _gtk_widget_peek_colormap()
      	on the widget.
      
      	* gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
      	to GTK+. Make it return %NULL instead of the default
      	colormap if no colormap has explicitely been pushed.
      
      	* gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
      	colormaps on ancestral widgets before defaulting the
      	the system default colormap.
      
      	* docs/Changes-2.0.txt: explain colormap changes.
      6341c2f9
  33. 19 Aug, 2001 1 commit
    • Owen Taylor's avatar
      Really remove set_default_style(). · 9e58bc31
      Owen Taylor authored
      Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.h: Really remove set_default_style().
      
      	* docs/Changes-2.0.txt: added a note about
      	gtk_widget_push/pop/set_default_style.
      9e58bc31
  34. 11 Aug, 2001 1 commit
  35. 10 Aug, 2001 1 commit
    • Havoc Pennington's avatar
      fix a typo. · f37a0627
      Havoc Pennington authored
      2001-08-07  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
      
      	* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
      	some fixage is needed here, but nothing simple. Owen understands
      	it. ;-)
      
              * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
      	sizing and positioning.  Also, fix bug in compute_geometry_hints
      	(width/height confusion for setting min size).
      	(gtk_window_move): new function
      	(gtk_window_resize): new function
      	(gtk_window_get_size): new function
      	(gtk_window_get_position): new function
      	(gtk_window_parse_geometry): new function
      
       	* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
       	(gtk_widget_get_size_request): new function
       	(gtk_widget_get_usize): delete, that was a short-lived function
       	;-)
       	(gtk_widget_set_usize): deprecate
       	(gtk_widget_set_uposition): deprecate, make it a trivial
      	gtk_window_move() wrapper
      	(gtk_widget_class_init): remove x/y/width/height properties,
      	add width_request height_request
      
              * demos/*: update to avoid deprecated functions
      
      	* gtk/gtklayout.c: add x/y child properties
      
      	* gtk/gtkfixed.c: add x/y child properties, and get rid of
      	uses of "gint16"
      
      	* tests/testgtk.c (create_window_sizing): lots of tweaks to window
      	sizing test
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
      	configure events on toplevel windows are always in root window
      	coordinates, following ICCCM spec that all synthetic events
      	are in root window coords already, while real events are
      	in parent window coords. Previously the code assumed that
      	coords of 0,0 were parent window coords, which was
      	really broken.
      
       	* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
       	warning
      
       	* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
       	and GDK_HINT_USER_SIZE so we can set USSize and USPosition
       	hints in gtk_window_parse_geometry()
      
       	* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
       	new USER_POS USER_SIZE hints
      f37a0627
  36. 19 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Enforce the widget/child realization/mapping invariants. · aa49527f
      Owen Taylor authored
      Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
      	the widget/child realization/mapping invariants.
      
      	* gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
      	gtk_widget_[get/set]_child_visible() to control
      	whether visible children of a mapped window are
      	mapped.
      
      	* docs/widget_system.txt: Updated for changes in
      	container contract, and addition of GTK_CHILD_VISIBLE.
      
      	* gtk/gtkcontainer.c: Add generic map()/unmap()
      	functions that work for almost all containers.
      
      	* gtk/gtknotebook.c gtk/gtkpacker.c: Use
      	gtk_widget_set_child_visible() where necessary.
      
      	* gtk/*.c: Remove excess map(), unmap(), and
      	realization/mapping invariant enforcing code
      	from many containers.
      aa49527f
  37. 05 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)), not · c1a14d03
      Owen Taylor authored
      Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
      	  gtk/gtkwidget.c:
      	Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
      	not GTK_WIDGET_GET_ANCESTOR ... see
      	http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
      	Indicate the best practice in the docs for gtk_widget_get_toplevel().
      
      	* gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
      	so GtkPlug can give the correct signals when transforming
      	from a child to a toplevel.
      
      	* gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
      	reparentation correctly.
      
      	* gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
      	Propagate the previous_toplevel argument down properly.
      
      	* gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
      	of wrong atr list.
      
      	* gtk/gtkplug.[ch]: Add an "embedded" signal.
      
      	* gtk/gtksocket.[ch]: Add "child_added", "child_removed"
      	signals.
      
      	* gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add
      	functions gtk_plug_get_id(), gtk_socket_get_id(),
      	to avoid the user having to worry about realization,
      	and gdkx.h.
      
      	* tests/testsocket.c: Extend to try out the new signals
      	and gtk_plug/socket_get_id().
      
      	* gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
      	setting of underline attributes.
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
      	DestroyNotify events from SubstructureNotifyMask
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
      	Switch GDK_WINDOW_TYPE (window) as needed.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
      	allow creation of toplevel windows as children of
      	foreign windows.
      
      	* gtk/gtkplug.c: Remove hacks involving changing private
      	fields of GdkWindow.
      
      	* gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make
      	exactly the same signals and notification
      	be emitted for local embedding as for inter-process
      	embedding.
      c1a14d03
  38. 01 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Remove change check for GTK_TYPE_OBJECT derivation to G_TYPE_OBJECTS - · de985fb5
      Owen Taylor authored
      Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktypeutils.c (gtk_type_class): Remove
      	change check for GTK_TYPE_OBJECT derivation to
      	G_TYPE_OBJECTS - it's Tim-approved to use this
      	for arbitary objects.
      
      	* gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
      	prefix gtk_container_dequeue_resize_handler().
      
      	* gtk/gtkwidget.[ch]: Add a previous_toplevel argument
      	to the hierarachy_changed signal, since you otherwise
      	have to always keep that around.
      
      	* gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
      	for extra argument to hierarchy_changed.
      de985fb5