From 63bce11e1ac86fbccb8df6eb2ebd17b08c5b7c51 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 24 May 2009 00:07:17 +0200 Subject: [PATCH] Redraw extensions treeview when activating/ deactivating --- panels/midori-extensions.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/panels/midori-extensions.c b/panels/midori-extensions.c index 2e99b708..1b06a72b 100644 --- a/panels/midori-extensions.c +++ b/panels/midori-extensions.c @@ -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)); } } -- 2.39.5