From: Christian Dywan Date: Fri, 13 Nov 2009 17:37:00 +0000 (+0100) Subject: Disable statusbar button showing adblock status X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5238431d840e70ec22cc65cbc84e65c1f9247df9;p=midori Disable statusbar button showing adblock status It doesn't work that well currently and it's not clear how it should change, so we're disabling it for the moment. --- diff --git a/extensions/adblock.c b/extensions/adblock.c index 6e55af81..58eac992 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -539,6 +539,7 @@ adblock_resource_request_starting_cb (WebKitWebView* web_view, return; if (g_hash_table_find (pattern, (GHRFunc) adblock_is_matched, (char*)uri)) { + #if 0 gchar* text; if (gtk_widget_get_has_tooltip (image)) @@ -547,6 +548,7 @@ adblock_resource_request_starting_cb (WebKitWebView* web_view, text = g_strdup_printf ("Blocked content: \n%s", uri); gtk_widget_set_tooltip_text (image, text); g_free (text); + #endif webkit_network_request_set_uri (request, "about:blank"); } @@ -614,9 +616,13 @@ adblock_app_add_browser_cb (MidoriApp* app, GtkWidget* image; statusbar = katze_object_get_object (browser, "statusbar"); + #if 0 image = gtk_image_new_from_stock (STOCK_IMAGE, GTK_ICON_SIZE_MENU); gtk_widget_show (image); gtk_box_pack_start (GTK_BOX (statusbar), image, FALSE, FALSE, 3); + #else + image = NULL; + #endif midori_browser_foreach (browser, (GtkCallback)adblock_add_tab_foreach_cb, image);