From: Christian Dywan Date: Sun, 17 Apr 2011 20:33:56 +0000 (+0200) Subject: Reflect sensitivity of extension in the icon X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=201808f9dfe5271742f632806e764ecd10b84d50;p=midori Reflect sensitivity of extension in the icon --- diff --git a/panels/midori-extensions.c b/panels/midori-extensions.c index 834fd08c..fdae315b 100644 --- a/panels/midori-extensions.c +++ b/panels/midori-extensions.c @@ -234,9 +234,14 @@ midori_extensions_treeview_render_icon_cb (GtkTreeViewColumn* column, GtkTreeIter* iter, GtkWidget* treeview) { + MidoriExtension* extension; + gtk_tree_model_get (model, iter, 0, &extension, -1); + g_object_set (renderer, "stock-id", STOCK_EXTENSION, "stock-size", GTK_ICON_SIZE_BUTTON, + "sensitive", midori_extension_is_prepared (extension), "xpad", 4, NULL); + g_object_unref (extension); } static void