From 27567de620d3629ad365bbb8129eba0c835f3bb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 14 Jan 2010 02:01:30 +0100 Subject: [PATCH] Guard image with #define to prevent unused variable warnings --- extensions/adblock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/adblock.c b/extensions/adblock.c index 042cfde3..46ca3087 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -790,7 +790,9 @@ adblock_add_tab_cb (MidoriBrowser* browser, MidoriExtension* extension) { GtkWidget* web_view = gtk_bin_get_child (GTK_BIN (view)); + #if HAVE_WEBKIT_RESOURCE_REQUEST GtkWidget* image = g_object_get_data (G_OBJECT (browser), "status-image"); + #endif g_signal_connect (web_view, "window-object-cleared", G_CALLBACK (adblock_window_object_cleared_cb), 0); @@ -1131,7 +1133,9 @@ adblock_deactivate_tabs (MidoriView* view, MidoriExtension* extension) { GtkWidget* web_view = gtk_bin_get_child (GTK_BIN (view)); + #if HAVE_WEBKIT_RESOURCE_REQUEST GtkWidget* image = g_object_get_data (G_OBJECT (browser), "status-image"); + #endif g_signal_handlers_disconnect_by_func ( browser, adblock_add_tab_cb, extension); -- 2.39.5