]> spindle.queued.net Git - midori/commitdiff
Reflect sensitivity of extension in the icon
authorChristian Dywan <christian@twotoasts.de>
Sun, 17 Apr 2011 20:33:56 +0000 (22:33 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 17 Apr 2011 20:33:56 +0000 (22:33 +0200)
panels/midori-extensions.c

index 834fd08c3ac655b64da64952964ac0d23354b7d6..fdae315b87940c5ac4a3a0d035a61839950f2ae7 100644 (file)
@@ -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