changeset 11833:9d3ab7919ee0

[gaim-migrate @ 14124] Clear the plugin details label when deselecting the currently selected plugin (CTRL+click). This dialog still have some problems. For example, select a plugin, enable it, click on a different plugin in the list, then go back to the one you enabled. Watch the expanded plugin details area... not everything is showing up or something. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 26 Oct 2005 04:59:33 +0000
parents 9ca386c15ffe
children 825d3ca6ffcd
files src/gtkplugin.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkplugin.c	Wed Oct 26 04:53:36 2005 +0000
+++ b/src/gtkplugin.c	Wed Oct 26 04:59:33 2005 +0000
@@ -225,8 +225,14 @@
 	GValue val = { 0, };
 	GaimPlugin *plug;
 
-	if (! gtk_tree_selection_get_selected (sel, &model, &iter))
+	if (!gtk_tree_selection_get_selected (sel, &model, &iter))
+	{
+		/* Clear the old plugin details */
+		gtk_label_set_markup(GTK_LABEL(plugin_details), "");
+		gtk_widget_set_sensitive(pref_button, FALSE);
 		return;
+	}
+
 	gtk_tree_model_get_value (model, &iter, 2, &val);
 	plug = g_value_get_pointer(&val);