From 201808f9dfe5271742f632806e764ecd10b84d50 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 17 Apr 2011 22:33:56 +0200 Subject: [PATCH] Reflect sensitivity of extension in the icon --- panels/midori-extensions.c | 5 +++++ 1 file changed, 5 insertions(+) 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