Revision: 2070 http://geany.svn.sourceforge.net/geany/?rev=2070&view=rev Author: eht16 Date: 2007-11-23 08:37:03 -0800 (Fri, 23 Nov 2007)
Log Message: ----------- Fix plugin separator placement in the Tools menu.
Modified Paths: -------------- trunk/ChangeLog trunk/src/plugins.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-11-23 16:05:53 UTC (rev 2069) +++ trunk/ChangeLog 2007-11-23 16:37:03 UTC (rev 2070) @@ -4,6 +4,7 @@ Use FreeBasic specific sections in symbol list. Use Basic parser from CTags SVN and improve the parser for better handling of dim and const keywords. + * src/plugins.c: Fix plugin separator placement in the Tools menu.
2007-11-22 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/plugins.c =================================================================== --- trunk/src/plugins.c 2007-11-23 16:05:53 UTC (rev 2069) +++ trunk/src/plugins.c 2007-11-23 16:37:03 UTC (rev 2070) @@ -79,6 +79,7 @@
static GList *plugin_list = NULL; // list of all available, loadable plugins static GList *active_plugin_list = NULL; // list of only actually loaded plugins +static GtkWidget *separator = NULL; static void pm_show_dialog(GtkMenuItem *menuitem, gpointer user_data);
@@ -550,6 +551,9 @@ gtk_widget_show(widget); g_signal_connect((gpointer) widget, "activate", G_CALLBACK(pm_show_dialog), NULL);
+ separator = gtk_separator_menu_item_new(); + gtk_container_add(GTK_CONTAINER(geany_data.tools_menu), separator); + load_plugin_paths();
plugins_update_tools_menu(); @@ -622,13 +626,9 @@ void plugins_update_tools_menu() { gboolean found; - static GtkWidget *separator = NULL;
if (separator == NULL) - { - separator = gtk_separator_menu_item_new(); - gtk_container_add(GTK_CONTAINER(geany_data.tools_menu), separator); - } + return;
found = (g_list_find_custom(active_plugin_list, NULL, (GCompareFunc) plugin_has_menu) != NULL); ui_widget_show_hide(separator, found);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.