From 131a11a8a67c8d944a77227f7bed35aee1a127cb Mon Sep 17 00:00:00 2001 From: Sankar P Date: Fri, 26 Oct 2007 10:54:17 +0000 Subject: ** Fix for bug #461272 2007-10-26 Sankar P ** Fix for bug #461272 * plugin-manager.c: (eppm_selection_changed), (org_gnome_plugin_manager_manage): Configure button should not be enabled for all. configure button needs a hot-key. svn path=/trunk/; revision=34432 --- plugins/plugin-manager/ChangeLog | 9 +++++++++ plugins/plugin-manager/plugin-manager.c | 9 ++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/plugin-manager/ChangeLog b/plugins/plugin-manager/ChangeLog index 99c4d32087..3af1b4d780 100644 --- a/plugins/plugin-manager/ChangeLog +++ b/plugins/plugin-manager/ChangeLog @@ -1,3 +1,12 @@ +2007-10-26 Sankar P + + ** Fix for bug #461272 + + * plugin-manager.c: (eppm_selection_changed), + (org_gnome_plugin_manager_manage): + Configure button should not be enabled for all. + configure button needs a hot-key. + 2007-07-26 Sankar P * plugin-manager.c: (eppm_response), diff --git a/plugins/plugin-manager/plugin-manager.c b/plugins/plugin-manager/plugin-manager.c index 10ad9072b4..52a3d0c93d 100644 --- a/plugins/plugin-manager/plugin-manager.c +++ b/plugins/plugin-manager/plugin-manager.c @@ -132,9 +132,16 @@ eppm_selection_changed(GtkTreeSelection *selection, Manager *m) if (gtk_tree_selection_get_selected(selection, &model, &iter)) { EPlugin *ep; + EPluginLibConfigureFunc configure; + gboolean enabled = FALSE; gtk_tree_model_get(model, &iter, COL_PLUGIN_DATA, &ep, -1); eppm_show_plugin(m, ep); + + enabled = e_plugin_is_configurable (ep); + + gtk_dialog_set_response_sensitive (m->dialog, RESPONSE_CONFIGURE, enabled); + } else { eppm_show_plugin(m, NULL); } @@ -223,7 +230,7 @@ org_gnome_plugin_manager_manage(void *ep, ESMenuTargetShell *t) m->dialog = (GtkDialog *)gtk_dialog_new_with_buttons(_("Plugin Manager"), (GtkWindow *)gtk_widget_get_toplevel(t->target.widget), GTK_DIALOG_DESTROY_WITH_PARENT, - _("Configure"), RESPONSE_CONFIGURE, + _("Con_figure"), RESPONSE_CONFIGURE, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); -- cgit v1.2.3