gtk/tests
Jody Goldberg c73ab06ef5 Adjust to the new connect_proxy signals.
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.
2004-01-12 22:45:45 +00:00
..
test-images image files for testing pixbuf loaders the old test-loaders.c split into 2002-05-05 00:59:42 +00:00
.cvsignore cvsignore updates 2003-10-23 04:31:28 +00:00
3DRings.xpm Initial revision 1997-11-24 22:37:52 +00:00
apple-red.png Insert cast to fix warning. Assign something to old_value to quiet gcc 2003-07-03 01:02:04 +00:00
check-n.xpm reworked the redrawing heuristics somewhat, this fixed a bunch of existing 1999-01-12 15:12:14 +00:00
check-y.xpm reworked the redrawing heuristics somewhat, this fixed a bunch of existing 1999-01-12 15:12:14 +00:00
circles.xbm gtk/gtktext.c 1998-02-27 06:13:22 +00:00
FilesQueue.xpm Initial revision 1997-11-24 22:37:52 +00:00
Makefile.am gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]: Basic framework 2003-10-23 04:22:32 +00:00
makefile.msc updated added all the new tests 2003-11-15 20:35:55 +00:00
marble.xpm Initial revision 1997-11-24 22:37:52 +00:00
merge-1.ui Test handling of empty menus. 2003-09-30 20:55:24 +00:00
merge-2.ui Test handling of empty menus. 2003-09-30 20:55:24 +00:00
merge-3.ui Change the XML format: <Root> element is replaced by <ui>, <menu> element 2003-08-27 22:22:28 +00:00
Modeller.xpm Initial revision 1997-11-24 22:37:52 +00:00
pixbuf-lowmem.c image files for testing pixbuf loaders the old test-loaders.c split into 2002-05-05 00:59:42 +00:00
pixbuf-random.c image files for testing pixbuf loaders the old test-loaders.c split into 2002-05-05 00:59:42 +00:00
pixbuf-randomly-modified.c Deprecation cleanup 2002-10-13 23:22:33 +00:00
pixbuf-read.c image files for testing pixbuf loaders the old test-loaders.c split into 2002-05-05 00:59:42 +00:00
prop-editor.c gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]: Basic framework 2003-10-23 04:22:32 +00:00
prop-editor.h Make it work, even if the window is already realized or mapped. 2002-04-30 23:44:14 +00:00
simple.c marshaller fixes. 2001-03-07 14:49:21 +00:00
stresstest-toolbar.c remove this accidentally committed file. 2003-07-04 17:38:08 +00:00
test.xpm Initial revision 1997-11-24 22:37:52 +00:00
testactions.c Add value parameter to allow setting the currently selected group member 2003-09-15 19:51:55 +00:00
testcalendar.c Use g_date_strftime(), fixing #74745. (Alper Ersoy) 2002-11-07 20:11:47 +00:00
testcombo.c grrrr. broken pipe. 2003-11-16 23:20:23 +00:00
testdnd.c Use g_setenv() instead of putenv(). 2003-08-02 21:35:44 +00:00
testfilechooser.c handle GTK_DATADIR similar as the other filesystem placement 'constants' 2003-12-14 19:03:02 +00:00
testgtk.1 Added gtk/testgtk.1 man page for testgtk 1998-03-24 04:01:21 +00:00
testgtk.c Add table menu tests. 2003-09-11 21:02:24 +00:00
testgtkrc Add a --screen option for setting the default screen. (Based on a patch 2002-10-31 21:12:23 +00:00
testgtkrc2 Remove all references to offscreen flag which was no longer used. 2000-06-02 03:14:07 +00:00
testicontheme.c Add a test program from gnome-desktop. 2003-07-03 21:26:35 +00:00
testinput.c Deprecation cleanup 2002-10-13 23:22:33 +00:00
testmenus.c Still uses option menus, so turn off GTK_DISABLE_DEPRECATED. 2003-10-13 17:43:48 +00:00
testmerge.c Adjust to the new connect_proxy signals. 2004-01-12 22:45:45 +00:00
testmultidisplay.c Don't include strings.h, it's not needed anymore. (#112388) 2003-05-06 21:33:22 +00:00
testmultiscreen.c Deprecation cleanup 2002-10-13 23:22:33 +00:00
testrgb.c Deprecation cleanup 2002-10-13 23:22:33 +00:00
testselection.c add -DGTK_DISABLE_DEPRECATED. #undef it at the top of gtktypebuiltins.c. 2002-11-20 01:07:33 +00:00
testsocket_child.c For XEMBED embedding add a _XEMBED_INFO property to the client with 2001-07-03 14:14:30 +00:00
testsocket_common.c Deprecation cleanup 2002-10-13 23:22:33 +00:00
testsocket.c Remove an extraneous unref. (#122336, Frederic Crozat) 2003-10-05 22:00:49 +00:00
testtext.c Turn off GTK_DISABLE_DEPRECATED, since this test uses the 2003-09-26 23:33:46 +00:00
testtextbuffer.c #include <stdlib.h> for putenv, <string.h> for strlen. 2003-01-09 02:38:13 +00:00
testthreads.c applied patch from Andreas Persenius <ndap@swipnet.se> that updates the 2000-07-26 11:33:08 +00:00
testtoolbar.c delete this function (toolbar_item_is_homogeneous): cache 2003-10-31 02:10:03 +00:00
testtreecolumns.c Deprecation cleanup 2002-10-13 23:22:33 +00:00
testtreeedit.c demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.c 2003-02-28 01:45:51 +00:00
testtreeflow.c the rand variable should be static to avoid conflicts with rand(). 2002-12-19 02:38:27 +00:00
testtreefocus.c demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.c 2003-02-28 01:45:51 +00:00
testtreesort.c Deprecation cleanup 2002-10-13 23:22:33 +00:00
testtreeview-plan.txt handle case where there are no rows in the model 2001-01-09 17:45:34 +00:00
testtreeview.c These files still use option menus, so turn off GTK_DISABLE_DEPRECATED to 2003-10-11 22:21:04 +00:00
testxinerama.c Deprecation cleanup 2002-10-13 23:22:33 +00:00
treestoretest.c Deprecation cleanup 2002-10-13 23:22:33 +00:00