]> spindle.queued.net Git - midori/commitdiff
Redraw extensions treeview when activating/ deactivating
authorChristian Dywan <christian@twotoasts.de>
Sat, 23 May 2009 22:07:17 +0000 (00:07 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 23 May 2009 22:07:17 +0000 (00:07 +0200)
panels/midori-extensions.c

index 2e99b70876f5fd71c8d7843a6958b3cbb6f33dd0..1b06a72b45416a66ff4cd446e993cd67170ef011 100644 (file)
@@ -302,10 +302,12 @@ midori_extensions_treeview_row_activated_cb (GtkTreeView*       treeview,
             midori_extension_deactivate (extension);
         else
             g_signal_emit_by_name (extension, "activate", extensions->app);
-    gtk_widget_set_sensitive (GTK_WIDGET (button_enable),
-        !midori_extension_is_active (extension));
-    gtk_widget_set_sensitive (GTK_WIDGET (button_disable),
-        midori_extension_is_active (extension));
+        gtk_widget_set_sensitive (GTK_WIDGET (button_enable),
+            !midori_extension_is_active (extension));
+        gtk_widget_set_sensitive (GTK_WIDGET (button_disable),
+            midori_extension_is_active (extension));
+        /* FIXME: Update only the appropriate row */
+        gtk_widget_queue_draw (GTK_WIDGET (treeview));
     }
 }