SF.net SVN: geany: [2157] trunk/src/keybindings.c
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Jan 10 13:41:58 UTC 2008
Revision: 2157
http://geany.svn.sourceforge.net/geany/?rev=2157&view=rev
Author: ntrel
Date: 2008-01-10 05:41:58 -0800 (Thu, 10 Jan 2008)
Log Message:
-----------
Add comment to remind me not to use GTK_WIDGET_IS_SENSITIVE for menu items.
Modified Paths:
--------------
trunk/src/keybindings.c
Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c 2008-01-10 13:27:26 UTC (rev 2156)
+++ trunk/src/keybindings.c 2008-01-10 13:41:58 UTC (rev 2157)
@@ -985,6 +985,9 @@
default:
item = NULL;
}
+ /* Note: For Build menu items it's OK (at the moment) to assume they are in the correct
+ * sensitive state, but some other menus don't update the sensitive status until
+ * they are redrawn. */
if (item && GTK_WIDGET_IS_SENSITIVE(item))
gtk_menu_item_activate(GTK_MENU_ITEM(item));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list