Revision: 2941 http://geany.svn.sourceforge.net/geany/?rev=2941&view=rev Author: ntrel Date: 2008-09-12 14:12:15 +0000 (Fri, 12 Sep 2008)
Log Message: ----------- Make menu document-sensitive.
Modified Paths: -------------- branches/split-window-plugin/ChangeLog branches/split-window-plugin/plugins/splitwindow.c
Modified: branches/split-window-plugin/ChangeLog =================================================================== --- branches/split-window-plugin/ChangeLog 2008-09-12 11:37:02 UTC (rev 2940) +++ branches/split-window-plugin/ChangeLog 2008-09-12 14:12:15 UTC (rev 2941) @@ -1,3 +1,9 @@ +2008-09-12 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * plugins/splitwindow.c: + Make menu document-sensitive. + + 2008-09-11 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/geanyobject.c, src/geanyobject.h, src/document.c,
Modified: branches/split-window-plugin/plugins/splitwindow.c =================================================================== --- branches/split-window-plugin/plugins/splitwindow.c 2008-09-12 11:37:02 UTC (rev 2940) +++ branches/split-window-plugin/plugins/splitwindow.c 2008-09-12 14:12:15 UTC (rev 2941) @@ -39,6 +39,7 @@
GeanyData *geany_data; GeanyFunctions *geany_functions; +PluginFields *plugin_fields;
enum State { @@ -239,8 +240,10 @@ { GtkWidget *item, *menu; - menu_items.main = gtk_menu_item_new_with_mnemonic(_("_Split Window")); + menu_items.main = item = gtk_menu_item_new_with_mnemonic(_("_Split Window")); gtk_menu_append(geany_data->main_widgets->tools_menu, menu_items.main); + plugin_fields->menu_item = item; + plugin_fields->flags = PLUGIN_IS_DOCUMENT_SENSITIVE; menu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_items.main), menu);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.