From: Enrico Tröger Date: Thu, 14 Jan 2010 01:01:30 +0000 (+0100) Subject: Guard image with #define to prevent unused variable warnings X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27567de620d3629ad365bbb8129eba0c835f3bb0;p=midori Guard image with #define to prevent unused variable warnings --- 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);