Revision: 495 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=495&view=rev Author: frlan Date: 2009-02-18 23:09:52 +0000 (Wed, 18 Feb 2009)
Log Message: ----------- GeanyLipsum: Don't offer menu entry if no document is open
Modified Paths: -------------- trunk/geanylipsum/src/geanylipsum.c
Modified: trunk/geanylipsum/src/geanylipsum.c =================================================================== --- trunk/geanylipsum/src/geanylipsum.c 2009-02-18 23:09:25 UTC (rev 494) +++ trunk/geanylipsum/src/geanylipsum.c 2009-02-18 23:09:52 UTC (rev 495) @@ -174,12 +174,14 @@ G_CALLBACK(lipsum_activated), NULL); gtk_container_add(GTK_CONTAINER(geany->main_widgets->tools_menu), menu_lipsum);
+ + ui_add_document_sensitive(menu_lipsum); + main_menu_item = menu_lipsum;
/* init keybindings */ keybindings_set_item(plugin_key_group, LIPSUM_KB_INSERT, kblipsum_insert, 0, 0, "inster_lipsum", _("Insert Lipsum text"), menu_lipsum); - }
/* Called by Geany before unloading the plugin. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.