1. 11 May, 2004 1 commit
  2. 09 May, 2004 1 commit
  3. 08 May, 2004 1 commit
    • Hans Breuer's avatar
      finally also create the correct mask for 'pseudo mime' icons · 805abff3
      Hans Breuer authored
      2004-05-08  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkfilesystemwin32.c (extract_icon) : finally also
      	create the correct mask for 'pseudo mime' icons
      
      	* gdk/win32/gdkwindow-win32.c(show_window_internal) : also
      	take focus_on_map into account
      
      	* gtk/gtkselection.c : g_message() only with DEBUG_SELECTION
      
      	* gtk/gtkactiongroup.c gtk/gtkcombobox.c :
      	... must return a value
      
      	* gdk/gdk.def gtk/gtk.def demos/gtk-demo/makefile.msc.in : updated
      805abff3
  4. 06 May, 2004 1 commit
  5. 29 Apr, 2004 1 commit
    • Matthias Clasen's avatar
      Use _gtk_action_emit_activate() instead of directly emitting the activate · 40532b0d
      Matthias Clasen authored
      2004-04-29  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkaction.c (closure_accel_activate): Use
      	_gtk_action_emit_activate() instead of directly
      	emitting the activate signal.  (#141429, Jody Goldberg)
      
      	* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
      	Warn people when the accelerator can not be
      	parsed.  (#141429, Jody Goldberg)
      40532b0d
  6. 13 Apr, 2004 1 commit
  7. 19 Feb, 2004 1 commit
  8. 28 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      Do reference counting on the user_data that is shared between multiple · b3ecd290
      Matthias Clasen authored
      Thu Jan 29 00:48:47 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
      	* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do reference
      	counting on the user_data that is shared between multiple signal handlers,
      	to avoid calling the destroy notify multiple times.  (#132447, Adam Hooper)
      b3ecd290
  9. 21 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      Fix #131869: · a1843107
      Matthias Clasen authored
      Wed Jan 21 23:27:14 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Fix #131869:
      
      	* gtk/gtkaction.c (_gtk_action_emit_activate): Hold
      	a reference to the group while emitting the signals.
      
      	* gtk/gtkactiongroup.c (gtk_action_group_init): Use a
      	destroy notify which does not only unref, but also resets
      	the action_group property of the action.
      a1843107
  10. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and · 07d4d314
      Matthias Clasen authored
      Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
      
      	The first part of the fix for #114351 (see also
      	gdk-pixbuf/ChangeLog and po/ChangeLog):
      
      	* gtk/gtkintl.h:
      	* gdk-pixbuf/gdk-pixbuf-i18n.h:
      	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
      
      	* gdk/gdkdisplaymanager.c:
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* modules/input/gtkimcontextxim.c:
      	* gtk/*.c:  Mark property blurbs and nicks with P_().
      
      	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
      	invocation, since property blurbs and nicks are
      	now marked with P_().
      07d4d314
  11. 14 Jan, 2004 1 commit
  12. 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
  13. 07 Jan, 2004 2 commits
    • Matthias Clasen's avatar
      Remove the redundant name and stock_id parameters, adjust all callers. · bc3d9ffa
      Matthias Clasen authored
      Wed Jan  7 23:03:32 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.h:
      	* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
      	Remove the redundant name and stock_id parameters, adjust all callers.
      bc3d9ffa
    • Matthias Clasen's avatar
      Add creation functions for actions. · a11e45a1
      Matthias Clasen authored
      Wed Jan  7 22:20:20 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkaction.h:
      	* gtk/gtkaction.c (gtk_action_new):
      	* gtk/gtktoggleaction.h:
      	* gtk/gtktoggleaction.c (gtk_toggle_action_new):
      	* gtk/gtkradioaction.h:
      	* gtk/gtkradioaction.c (gtk_radio_action_new): Add creation
      	functions for actions.
      
      	* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
      	(gtk_action_group_add_toggle_actions_full):
      	(gtk_action_group_add_radio_actions_full): and use the
      	new functions here.  (#125322, Patch by Jeff Frank)
      a11e45a1
  14. 02 Jan, 2004 1 commit
    • Jody Goldberg's avatar
      add visible_horizontal, visible_vertical. (gtk_action_class_init) : here. · 9acc9419
      Jody Goldberg authored
      
      2004-01-01  Jody Goldberg <jody@gnome.org>
      
      	* gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
      	  visible_vertical.
      	(gtk_action_class_init) : here.
      	(gtk_action_init) : here.
      	(gtk_action_set_property) : here.
      	(gtk_action_get_property) : here.
      	(connect_proxy) : and here.
      
      2003-12-30  Jody Goldberg <jody@gnome.org>
      
      	* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) :  new
      	  utility routine for use in derived GtkActions with the replicated code
      	  from.
      	(gtk_action_group_add_actions_full) : here.
      	(gtk_action_group_add_toggle_actions_full) : here.
      	(gtk_action_group_add_radio_actions_full) : and here.
      
      2003-12-24  Jody Goldberg <jody@gnome.org>
      
      	* gtk/gtkactiongroup.h : Add some const to the char * in
      	  GtkActionEntry*.  We're reccomending people pass static strings to
      	  them, and not freeing them.  This stems to flood of warnings that
      	  result.
      	* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
      	  temp vars to const to match above.
      	(gtk_action_group_add_toggle_actions_full) : ditto.
      	(gtk_action_group_add_radio_actions_full) : ditto.
      9acc9419
  15. 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
  16. 26 Dec, 2003 1 commit
  17. 25 Oct, 2003 1 commit
  18. 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
  19. 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
  20. 04 Sep, 2003 1 commit
  21. 01 Sep, 2003 1 commit
  22. 30 Aug, 2003 1 commit
    • Matthias Clasen's avatar
      Add some docs. · 0a49f658
      Matthias Clasen authored
      2003-08-31  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.c: Add some docs.
      
      	* gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
      	wasn't emitted anyway.
      0a49f658
  23. 29 Aug, 2003 2 commits
  24. 27 Aug, 2003 1 commit
    • Matthias Clasen's avatar
      Change the XML format: <Root> element is replaced by <ui>, <menu> element · cbc20c4d
      Matthias Clasen authored
      2003-08-28  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkuimanager.c: Change the XML format:
      	<Root> element is replaced by <ui>,
      	<menu> element is replaced by <menubar>,
      	<submenu> element is replaced by <menu>,
      	<dockitem> element is replaced by <toolbar>,
      	<popups> element is gone,
      	verb attribute is replaced by action,
      	name defaults to action or the element name.
      
      	* gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by GtkActionEntry
      	and GtkRadioActionEntry. GtkActionEntry is simplified by removing
      	the user_data, entry_type and extra_data fields, GtkRadioActionEntry is
      	further simplified by removing the callback. The user_data can now be
      	specified as an argument to gtk_action_group_add_actions(). There is
      	a new method gtk_action_group_add_radio_actions(), which is similar
      	to gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
      	and a callback parameter in addition to the user_data. The callback
      	is connected to the ::changed signal of the first group member.
      	There are _full() variants taking a GDestroyNotify of
      	gtk_action_group_add_[radio_]actions().
      
      	* gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted
      	on every member of the radio group when the active member is changed.
      	Add an integer property "value", and a getter for the value of "value"
      	on the currently active group member.
      
      	* tests/testactions.c:
      	* tests/testmerge.c:
      	* tests/merge-[123].ui:
      	* demos/gtk-demo/appwindow.c: Adjust to these changes.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
      cbc20c4d
  25. 25 Aug, 2003 2 commits
  26. 24 Aug, 2003 3 commits
    • Matthias Clasen's avatar
      Hooks for translation of label and tooltip in GtkActionGroupEntries. · bfa5c5aa
      Matthias Clasen authored
      2003-08-25  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
      	gtk_action_group_set_translation_domain): Hooks for translation of
      	label and tooltip in GtkActionGroupEntries.  (#120620)
      bfa5c5aa
    • Matthias Clasen's avatar
      Namespace the enum values properly. Sorry about the resize grip trouble, · 32c6a944
      Matthias Clasen authored
      2003-08-25  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
      	values properly. Sorry about the resize grip trouble, Owen.  (#120621)
      
      	* gtk/gtkactiongroup.c:
      	* demos/gtk-demo/appwindow.c:
      	* tests/testmerge.c:
      	* tests/testactions.c: Use new GtkActionGroupEntryType enum.
      32c6a944
    • Matthias Clasen's avatar
      A model-view separation for menus and toolbars, using the EggMenu code by · e7e39565
      Matthias Clasen authored
      2003-08-24  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkaction.[ch]:
      	* gtk/gtktoggleaction.[ch]:
      	* gtk/gtktoggleactionprivate.h:
      	* gtk/gtkradioaction.[ch]:
      	* gtk/gtkactiongroup.[ch]:
      	* gtk/gtkmenumerge.[ch]: A model-view separation for menus and
      	toolbars, using the EggMenu code by James Henstridge.
      
      	* gtk/gtk.h: Include new headers.
      	* gtk/Makefile.am: Add new files.
      
      	* tests/testactions.c: Test for actions.
      	* tests/testmerge.c: Test for menu merging.
      	* tests/merge-[123].ui: Test data for testmerge.
      	* tests/Makefile.am: Add testactions and testmerge.
      
      	* demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the
      	menubar and toolbar.
      e7e39565