SF.net SVN: geany:[3542] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Mon Feb 2 21:04:55 UTC 2009
Revision: 3542
http://geany.svn.sourceforge.net/geany/?rev=3542&view=rev
Author: eht16
Date: 2009-02-02 21:04:55 +0000 (Mon, 02 Feb 2009)
Log Message:
-----------
Fix wrong Help button sensitiveness in the plugin manager dialog.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/plugins.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-02-01 23:17:15 UTC (rev 3541)
+++ trunk/ChangeLog 2009-02-02 21:04:55 UTC (rev 3542)
@@ -1,3 +1,9 @@
+2009-02-02 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/plugins.c:
+ Fix wrong Help button sensitiveness in the plugin manager dialog.
+
+
2009-02-01 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/callbacks.c, src/document.c:
Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c 2009-02-01 23:17:15 UTC (rev 3541)
+++ trunk/src/plugins.c 2009-02-02 21:04:55 UTC (rev 3542)
@@ -1001,6 +1001,7 @@
{
gchar *text;
PluginInfo *pi;
+ gboolean is_active;
pi = &p->info;
text = g_strdup_printf(
@@ -1010,10 +1011,9 @@
geany_wrap_label_set_text(GTK_LABEL(pm_widgets.description_label), text);
g_free(text);
- gtk_widget_set_sensitive(pm_widgets.configure_button,
- p->configure != NULL && g_list_find(active_plugin_list, p) != NULL);
- gtk_widget_set_sensitive(pm_widgets.help_button,
- p->help != NULL && g_list_find(active_plugin_list, p) != NULL);
+ is_active = is_active_plugin(p);
+ gtk_widget_set_sensitive(pm_widgets.configure_button, p->configure != NULL && is_active);
+ gtk_widget_set_sensitive(pm_widgets.help_button, p->help != NULL && is_active);
}
}
}
@@ -1022,6 +1022,7 @@
static void pm_plugin_toggled(GtkCellRendererToggle *cell, gchar *pth, gpointer data)
{
gboolean old_state, state;
+ gboolean is_active;
gchar *file_name;
GtkTreeIter iter;
GtkTreePath *path = gtk_tree_path_new_from_string(pth);
@@ -1058,9 +1059,10 @@
g_free(file_name);
- /* set again the sensitiveness of the configure button */
- gtk_widget_set_sensitive(pm_widgets.configure_button,
- p->configure != NULL && is_active_plugin(p));
+ /* set again the sensitiveness of the configure and help buttons */
+ is_active = is_active_plugin(p);
+ gtk_widget_set_sensitive(pm_widgets.configure_button, p->configure != NULL && is_active);
+ gtk_widget_set_sensitive(pm_widgets.help_button, p->help != NULL && is_active);
}
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