1. 13 Mar, 2012 1 commit
  2. 27 Feb, 2012 1 commit
  3. 08 Dec, 2011 1 commit
  4. 02 Nov, 2011 1 commit
    • Matthias Clasen's avatar
      Don't use *_DISABLE_DEPRECATED · 9b0011be
      Matthias Clasen authored
      Instead of undefining the DISABLE_DEPRECATED guards,
      define the GDK_DISABLE_DEPRECATION_WARNING macro where needed.
      Also replace INCLUDES by AM_CPPFLAGS to shut up automake.
      9b0011be
  5. 15 Oct, 2011 1 commit
  6. 01 Oct, 2011 1 commit
  7. 30 Sep, 2011 1 commit
  8. 28 Sep, 2011 1 commit
  9. 29 Nov, 2010 1 commit
  10. 02 Nov, 2010 1 commit
  11. 31 Oct, 2010 1 commit
  12. 30 Oct, 2010 2 commits
  13. 27 Sep, 2010 1 commit
  14. 11 May, 2009 1 commit
  15. 13 Oct, 2008 1 commit
  16. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  17. 12 Feb, 2008 1 commit
  18. 22 Dec, 2006 1 commit
  19. 13 Jul, 2005 1 commit
  20. 19 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Make this work for inserting before/after an existing menuitem or · e109b31b
      Matthias Clasen authored
      2005-06-18  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
      	work for inserting before/after an existing menuitem or
      	toolitem.  (#155946, Christian Persch)
      
      	* tests/testmerge.c (delayed_toggle_dynamic): Test the
      	"insert after" functionality of gtk_ui_manager_add_ui.
      e109b31b
  21. 19 Nov, 2004 1 commit
    • Manish Singh's avatar
      modules/engines/ms-windows/msw_rc_style.c · 54b45a19
      Manish Singh authored
      Fri Nov 19 15:18:51 2004  Manish Singh  <yosh@gimp.org>
      
              * modules/engines/ms-windows/msw_rc_style.c
              * modules/engines/ms-windows/msw_style.c
              * modules/engines/ms-windows/msw_theme_main.c
              * modules/engines/pixbuf/pixbuf-main.c
              * modules/engines/pixbuf/pixbuf-rc-style.c
              * modules/input/gtkimcontextime.c
              * modules/input/gtkimcontextxim.c
              * modules/input/imam-et.c
              * modules/input/imcedilla.c
              * modules/input/imcyrillic-translit.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
              * tests/prop-editor.c
              * tests/testentrycompletion.c
              * tests/testfilechooser.c
              * tests/testmerge.c
              * tests/testtoolbar.c
              * tests/testtreecolumns.c
              * tests/testtreeview.c: get rid of unnecessary casts.
      
              * tests/testgtk.c (create_labels): add GTK_LABEL() casts for
              gtk_label_set_ellipsize() calls.
      
              * tests/testicontheme.c (main): remove unused pixbuf variable.
      54b45a19
  22. 28 Oct, 2004 1 commit
  23. 20 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Add some refcount debugging. · 82877f9e
      Matthias Clasen authored
      2004-07-20  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/testactions.c (main):
      	* tests/testmerge.c (main): Add some refcount debugging.
      
      	* gtk/gtkuimanager.c (update_node, free_node): Ref an sink
      	all proxies, so that we can properly clean up floating proxies
      	which the app didn't adopt.  (#147926, Tommi Komulainen)
      82877f9e
  24. 05 Jun, 2004 1 commit
    • Soeren Sandmann's avatar
      Add a checkbox to queue an merge/unmerge. Patch from Matthias Clasen. · e47c0d46
      Soeren Sandmann authored
      Sat Jun  5 20:05:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* tests/testmerge.c: Add a checkbox to queue an
      	merge/unmerge. Patch from Matthias Clasen.
      
      	* gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Add a new flag
      	"need_rebuild"
      	(rebuild_menu): New function that rebuilds the overflow menu and
      	makes sure it doesn't start or end with a separator.
      	(toolbar_content_new_tool_item)
      	(toolbar_content_remove)
      	(toolbar_content_new_compatibility): Set the rebuild_needed flag
      	(gtk_toolbar_size_allocate): Only show the overflow arrow when we
      	have actually overflown an item with a proxy menu item. Also make
      	sure we rebuild the menu if needed.
      
      	Fix #125504, #142377, #143463
      
      	* gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose):
      	Obey the "priv->draw" flag. (#143692)
      e47c0d46
  25. 06 Mar, 2004 1 commit
  26. 12 Jan, 2004 1 commit
    • Jody Goldberg's avatar
      Adjust to the new connect_proxy signals. · c73ab06e
      Jody Goldberg authored
      Mon Jan 12 23:40:34 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testmerge.c: Adjust to the new connect_proxy signals.
      
      	* gtk/gtkuimanager.c
      	* gtk/gtkactiongroup.c
      	* gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
      	from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
      	removes the confusion between the disconnect_/connect_proxy signals
      	and the (unrelated) virtual functions of the same name and aligns
      	the setup with the pre_/post_activate signals.
      
      2004-01-12  Jody Goldberg <jody@gnome.org>
      
      	* gtk/gtkaction.c (connect_proxy) : only connect activate for menus
      	  with no submenus otherwise it looks like we activate every time a
      	  submenu opens.
      
      2004-01-10  Jody Goldberg <jody@gnome.org>
      
      	* gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
      	s/merge_signals/ui_manager_signals/ for readability.
      	(gtk_ui_manager_class_init) : add pre_activate and post_activate
      	  signals.
      	(cb_proxy_pre_activate) : new.
      	(cb_proxy_post_activate) : new.
      	(gtk_ui_manager_insert_action_group) : connect the proxies for
      	  GtkActionGroup::pre/post_activate
      	(gtk_ui_manager_remove_action_group) : disconnect them.
      
      	* gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
      	  'sensitive', and 'visible' properties.  Also add pre_activate and
      	  post_activate signals to help deal with activations at a higher
      	  level (eg GtkUIManager)
      	(gtk_action_group_init) : init sensitive and visible
      	(gtk_action_group_set_property) : add sensitive and visible
      	(gtk_action_group_get_property) : add sensitive and visible
      	(gtk_action_group_get_sensitive) : new.
      	(gtk_action_group_get_visible) : new.
      	(cb_set_action_sensitivity) : new with minor optimization that only
      	  signals sensitivity changes if the action could possibly change.
      	(cb_set_action_visiblility) : ditto.
      	(gtk_action_group_set_sensitive) : new.  walk the actions directly
      	  rather than using notify::sensitive because that is simpler, easier
      	  to read, and more efficient.
      	(gtk_action_group_set_visible) : ditto.
      	(gtk_action_group_add_action) : Each action can only be in 1 group,
      	  set GtkAction::action_group.
      	(gtk_action_group_remove_action) : clear it.
      	(gtk_action_group_add_toggle_actions_full) : warning suppression.
      	(gtk_action_group_add_radio_actions_full) : warning suppression.
      	(_gtk_action_group_emit_pre_activate) : new protected routine for use
      	  by GtkAction.
      	(_gtk_action_group_emit_post_activate) : ditto.
      
      	* gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
      	(gtk_action_init) : initialize it.
      	(gtk_action_get_property) : get.
      	(gtk_action_set_property) : set it via
      	(gtk_action_set_action_group) : new function.
      	(gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
      	  with the logical sensitivity (action & group) rather than the simple
      	  action::sensitivity.
      	(gtk_action_sync_visible) : use gtk_action_is_visible to handle
      	  logical visibility (action & group) rather than the simple
      	  action::visible.  Use widget show/hide directly.
      	(connect_proxy) : handle the custom sensitivity handler.
      	  Make the TOOL_BUTTON signals more general and support TOOL_ITEM
      	  directly, with special cases for TOOL_BUTTON.  Still not especially
      	  good it might be useful to handle label/use_underline by parmspec
      	  lookup.  Those are likely to be implemented by custom types, and are
      	  assumed to exist in GtkToolItem.
      	(disconnect_proxy) : disconnect the new sensitivity handler.
      	(_gtk_action_emit_activate) : add pre/post signals.
      	(gtk_action_activate) : use logical sensitivity.
      	(gtk_action_is_sensitive) : logical sensitivity.
      	(gtk_action_get_sensitive) : actual sensitivity.
      	(closure_accel_activate) : use logical sensitivity.
      c73ab06e
  27. 08 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      New function to obtain a list of toplevel widgets constructed by the ui · f2bb20cc
      Matthias Clasen authored
      Fri Jan  9 00:34:57 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkuimanager.h:
      	* gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
      	obtain a list of toplevel widgets constructed by the ui manager.
      
      	* gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that
      	the values can be combined for gtk_ui_manager_get_toplevels().
      
      	* tests/testmerge.c: Add a "Dump toplevels" button to test
      	gtk_ui_manager_get_toplevels().
      f2bb20cc
  28. 31 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Pull accelerator key from the stock item if stock_id is given, but · e902118f
      Matthias Clasen authored
      Wed Dec 31 02:05:39 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
      	(gtk_action_group_add_toggle_actions_full):
      	(gtk_action_group_add_radio_actions_full): Pull accelerator key
      	from the stock item if stock_id is given, but accelerator
      	not.  (Noticed by Jeff Franks and Jody Goldberg)
      
      	* tests/testmerge.c: Remove the accelerator from the "Open" entry
      	to test the above change.
      e902118f
  29. 15 Nov, 2003 1 commit
    • Hans Breuer's avatar
      updated added all the new tests · 947b32b7
      Hans Breuer authored
      2003-11-15  Hans Breuer  <hans@breuer.org>
      
      	* gdk/makefile.msc gdk/gdk.def
                  gtk/gtk.def gtk/makefile.msc.in : updated
      	* tests/makefile.msc : added all the new tests
      
      	* gtk/gtkfilefilter.c(finalize) : initialize filter
      	from object not from itself
      
      	* gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
      	modified as less as posible to have aworking implementation
      	on win32. There maybe the desire to merge the unchanged pats into
      	a common base class.
      	Also implemented a simple glib based bookmark handling, which
      	is currently missing in gtkfilesystemunix.[hc] but can be copied
      	over there.
      	* gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
      
      	* gdk/win32/gdkwindow-win32.c : implement
      	gdk_window_set_keep_above() and gdk_window_set_keep_below()
      
      	* tests/testmerge.c : don't include unistd.h unconditionally,
      	#define STDOUT_FILENO if it isn't defined
      
      	* tests/testfilechooser.c : make it compile on win32
      947b32b7
  30. 01 Oct, 2003 1 commit
  31. 30 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Test handling of empty menus. · 57f13d81
      Matthias Clasen authored
      2003-09-30  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/merge-*.ui:
      	* tests/testmerge.c: Test handling of empty menus.
      
      	* gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
      	whether a menu is empty. Used in gtkaction.c.
      	(update_smart_separators): Also update the visibility of empty menus.
      	(update_node): When creating a new menu proxy, insert an "Empty" menu
      	item which only gets shown if the menu is empty.
      
      	* gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
      	"is_important" for menu proxies.
      	(_gtk_action_sync_menu_visible): New function to sync the visibility
      	of menu proxies. Used in gtkuimanager.c.
      	(gtk_action_sync_visible): New function to sync the visibility of
      	proxies.
      57f13d81
  32. 26 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Demonstrate the use of the connect-proxy signal. · eeed9d18
      Matthias Clasen authored
      2003-09-27  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testmerge.c: Demonstrate the use of the
      	connect-proxy signal.
      
      	* gtk/gtkaction.c (connect_proxy): Add connect-proxy and
      	disconnect-proxy signals to do small customizations
      	like displaying tooltips in the statusbar without
      	custom actions.  (#122894, Philip Langdale)
      
      	* gtk/gtkuimanager.c (update_node): Don't leak tooltip.
      eeed9d18
  33. 22 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Initially activate the JUSTIFY_RIGHT group member to test the fix for · cf639f41
      Matthias Clasen authored
      2003-09-22  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
      	group member to test the fix for #122904.
      
      	* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
      	Add the action to the group before activating it, otherwise we
      	may end up with multiple active group members.  (#122904, Marco
      	Pesenti Gritti)
      cf639f41
  34. 17 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Install accelerators on actions, not on proxies, support accelerator-only · 0ceb0db0
      Matthias Clasen authored
      2003-09-18  Matthias Clasen  <maclas@gmx.de>
      
      	Install accelerators on actions, not on proxies, support
      	accelerator-only actions:
      
      	* gtk/gtkmenu.c (get_accel_path): New function to get the accel path
      	and its lock status either via _gtk_widget_get_accel_path() or by
      	looking at the accel_path stored in the menu item itself and determining
      	its lock status by peeking into the contained accel label. This was
      	already (accidentally) committed a week ago.
      
      	* gtk/gtkaction.h (gtk_action_set_accel_group):
      	(gtk_action_[dis]connect_accelerator): New functions.
      
      	* gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
      	accel_closure and accel_count. We must have a reference to the accel_group,
      	since we need it in connect_proxy. The count is necessary to ensure
      	that the accelerator isn't removed before the last proxy requesting
      	it has been unmerged.
      	(connect_proxy): Connect the accelerator to the
      	action now, only set the accel_path on the menuitem.
      	(remove_proxy): Disconnect the accelerator from the action, not from
      	the menuitem.
      	(gtk_action_set_accel_group): Set the accel group.
      	(gtk_action_[dis]connect_accelerator): Count the number of times
      	this functions have been called and install/remove the accelerator if
      	the count leaves/reaches zero.
      
      	* gtk/gtkuimanager.h (GtkUIManagerItemType): Add
      	GTK_UI_MANAGER_ACCELERATOR.
      
      	* gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
      	(start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
      	<accelerator> elements.
      	(gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
      	type is GTK_UI_MANAGER_ACCELERATOR.
      	(update_node): Set the accel group on actions before creating their
      	proxies. Don't set the accel group on created menus. For
      	NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
      	(print_node): Also emit <accelerator> elements.
      
      	* tests/testmerge.c (dump_accels): Add a "Dump Accels" button.
      0ceb0db0
  35. 15 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Add value parameter to allow setting the currently selected group member · caf380c7
      Matthias Clasen authored
      2003-09-15  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
      	(gtk_action_group_add_radio_actions_full): Add value parameter to allow
      	setting the currently selected group member before connecting signals.
      	(GtkToggleActionEntry): Separate struct for constructing toggle actions,
      	including a boolean to initialize the action state before connecting
      	signals.
      	(gtk_action_group_add_toggle_actions):
      	(gtk_action_group_add_toggle_actions_full): New functions to construct
      	toggle actions from an array of GtkToggleActionEntries.
      
      	* demos/gtk-demo/appwindow.c:
      	* tests/testactions.c:
      	* tests/testmerge.c: Adjust to new action group API.
      
      	* gtk/gtk-sections.txt: Add gtk_action_group_add_toggle_actions[_full].
      caf380c7
  36. 04 Sep, 2003 2 commits
    • Matthias Clasen's avatar
      Test buttons and toggle buttons as proxies. · 9ae676b0
      Matthias Clasen authored
      2003-09-04  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testmerge.c: Test buttons and toggle buttons as proxies.
      
      	* gtk/gtktoggleaction.c (connect_proxy):
      	(gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note
      	that a "draw_as_radio" property is needed for check buttons similar to
      	check menu items, in order to fully support button proxies for radio actions.
      
      	* gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
      9ae676b0
    • Matthias Clasen's avatar
      Test gtk_ui_manager_add_ui(). · 02a963e1
      Matthias Clasen authored
      2003-09-04  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui().
      
      	* gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
      	'type' argument of gtk_ui_manager_add_ui().
      
      	* gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
      	to make this function as powerful as the XML methods of adding UI.  (#120647)
      
      	* gtk/gtk-sections.txt: Add GtkUIManagerItemType.
      02a963e1
  37. 31 Aug, 2003 1 commit
    • Matthias Clasen's avatar
      Add gtktoggleactionprivate.h · 2c41fc09
      Matthias Clasen authored
      2003-08-31  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/Makefile.am (IGNORE_HFILES): Add gtktoggleactionprivate.h
      
      	* gtk/tmpl/gtkuimanager.sgml:
      	* gtk/gtk-sections.txt: Replace gtk_ui_manager_activate by
      	gtk_ui_manager_get_action.
      
      	* gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
      	replaces gtk_ui_manager_activate().  (#120658)
      
      	* tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
      	gtk_ui_manager_activate().
      2c41fc09
  38. 30 Aug, 2003 1 commit
    • Matthias Clasen's avatar
      Connect to "destroy" on toolbar, rather than to "remove" on handlebox. · e5eaa52b
      Matthias Clasen authored
      2003-08-30  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
      	rather than to "remove" on handlebox.
      
      	* gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
      	activate an action found by following a path.  (#120658)
      
      	* tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
      e5eaa52b