Reflect sensitivity of extension in the icon

This commit is contained in:
Christian Dywan 2011-04-17 22:33:56 +02:00
parent 10c5ac4597
commit 201808f9df

View file

@ -234,9 +234,14 @@ midori_extensions_treeview_render_icon_cb (GtkTreeViewColumn* column,
GtkTreeIter* iter, GtkTreeIter* iter,
GtkWidget* treeview) GtkWidget* treeview)
{ {
MidoriExtension* extension;
gtk_tree_model_get (model, iter, 0, &extension, -1);
g_object_set (renderer, "stock-id", STOCK_EXTENSION, g_object_set (renderer, "stock-id", STOCK_EXTENSION,
"stock-size", GTK_ICON_SIZE_BUTTON, "stock-size", GTK_ICON_SIZE_BUTTON,
"sensitive", midori_extension_is_prepared (extension),
"xpad", 4, NULL); "xpad", 4, NULL);
g_object_unref (extension);
} }
static void static void