Revision: 1268 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1268&view=re... Author: colombanw Date: 2010-04-21 14:03:03 +0000 (Wed, 21 Apr 2010)
Log Message: ----------- GeanyGenDoc: Make menu items document-sensitive when it makes sense
Modified Paths: -------------- trunk/geanygendoc/src/ggd-plugin.c
Modified: trunk/geanygendoc/src/ggd-plugin.c =================================================================== --- trunk/geanygendoc/src/ggd-plugin.c 2010-04-21 14:02:28 UTC (rev 1267) +++ trunk/geanygendoc/src/ggd-plugin.c 2010-04-21 14:03:03 UTC (rev 1268) @@ -297,10 +297,12 @@ item = gtk_menu_item_new_with_mnemonic (_("_Document current symbol")); g_signal_connect (item, "activate", G_CALLBACK (insert_comment), NULL); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); + ui_add_document_sensitive (item); /* build "document all" item */ item = gtk_menu_item_new_with_mnemonic (_("Document _all symbols")); g_signal_connect (item, "activate", G_CALLBACK (insert_all_comments), NULL); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); + ui_add_document_sensitive (item); /* separator */ item = gtk_separator_menu_item_new (); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); @@ -314,9 +316,10 @@ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); /* language filetypes opener */ item = gtk_menu_item_new_with_mnemonic (_("_Edit current language configuration")); - gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); g_signal_connect (item, "activate", G_CALLBACK (open_current_filetype_conf_handler), NULL); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); + ui_add_document_sensitive (item); /* build tools menu item */ item = gtk_menu_item_new_with_mnemonic (_("_Documentation generator")); gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), menu);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.