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.
This commit is contained in:
Christian Dywan 2009-11-13 18:37:00 +01:00
parent ca5230d2ef
commit 5238431d84

View file

@ -539,6 +539,7 @@ adblock_resource_request_starting_cb (WebKitWebView* web_view,
return; return;
if (g_hash_table_find (pattern, (GHRFunc) adblock_is_matched, (char*)uri)) if (g_hash_table_find (pattern, (GHRFunc) adblock_is_matched, (char*)uri))
{ {
#if 0
gchar* text; gchar* text;
if (gtk_widget_get_has_tooltip (image)) 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); text = g_strdup_printf ("Blocked content: \n%s", uri);
gtk_widget_set_tooltip_text (image, text); gtk_widget_set_tooltip_text (image, text);
g_free (text); g_free (text);
#endif
webkit_network_request_set_uri (request, "about:blank"); webkit_network_request_set_uri (request, "about:blank");
} }
@ -614,9 +616,13 @@ adblock_app_add_browser_cb (MidoriApp* app,
GtkWidget* image; GtkWidget* image;
statusbar = katze_object_get_object (browser, "statusbar"); statusbar = katze_object_get_object (browser, "statusbar");
#if 0
image = gtk_image_new_from_stock (STOCK_IMAGE, GTK_ICON_SIZE_MENU); image = gtk_image_new_from_stock (STOCK_IMAGE, GTK_ICON_SIZE_MENU);
gtk_widget_show (image); gtk_widget_show (image);
gtk_box_pack_start (GTK_BOX (statusbar), image, FALSE, FALSE, 3); gtk_box_pack_start (GTK_BOX (statusbar), image, FALSE, FALSE, 3);
#else
image = NULL;
#endif
midori_browser_foreach (browser, midori_browser_foreach (browser,
(GtkCallback)adblock_add_tab_foreach_cb, image); (GtkCallback)adblock_add_tab_foreach_cb, image);