Mercurial > pidgin
comparison src/gtkplugin.c @ 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 | 1bb0efbd4394 |
children | 6539e6aa8ae6 |
comparison
equal
deleted
inserted
replaced
11832:9ca386c15ffe | 11833:9d3ab7919ee0 |
---|---|
223 gchar *buf, *pname, *pdesc, *pauth, *pweb; | 223 gchar *buf, *pname, *pdesc, *pauth, *pweb; |
224 GtkTreeIter iter; | 224 GtkTreeIter iter; |
225 GValue val = { 0, }; | 225 GValue val = { 0, }; |
226 GaimPlugin *plug; | 226 GaimPlugin *plug; |
227 | 227 |
228 if (! gtk_tree_selection_get_selected (sel, &model, &iter)) | 228 if (!gtk_tree_selection_get_selected (sel, &model, &iter)) |
229 { | |
230 /* Clear the old plugin details */ | |
231 gtk_label_set_markup(GTK_LABEL(plugin_details), ""); | |
232 gtk_widget_set_sensitive(pref_button, FALSE); | |
229 return; | 233 return; |
234 } | |
235 | |
230 gtk_tree_model_get_value (model, &iter, 2, &val); | 236 gtk_tree_model_get_value (model, &iter, 2, &val); |
231 plug = g_value_get_pointer(&val); | 237 plug = g_value_get_pointer(&val); |
232 | 238 |
233 pname = g_markup_escape_text(_(plug->info->name), -1); | 239 pname = g_markup_escape_text(_(plug->info->name), -1); |
234 pdesc = (plug->info->description) ? | 240 pdesc = (plug->info->description) ? |