]> spindle.queued.net Git - midori/commitdiff
Disable statusbar button showing adblock status
authorChristian Dywan <christian@twotoasts.de>
Fri, 13 Nov 2009 17:37:00 +0000 (18:37 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 13 Nov 2009 17:37:00 +0000 (18:37 +0100)
It doesn't work that well currently and it's not clear how it should
change, so we're disabling it for the moment.

extensions/adblock.c

index 6e55af817570351b6aaeb7b73a5aa37bc71b0e43..58eac9922125a4070fdb0aef00206e40aaa17c37 100644 (file)
@@ -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);