From 37d89d0986c65218536d81db81bcac5d130fc190 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 29 Jan 2010 21:13:44 +0100 Subject: [PATCH] Move declaration in search action icon callback to the top --- midori/midori-searchaction.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c index e6d5de79..0b5f6810 100644 --- a/midori/midori-searchaction.c +++ b/midori/midori-searchaction.c @@ -440,10 +440,6 @@ midori_search_action_icon_released_cb (GtkWidget* entry, gint button, GtkAction* action) { - - if (icon_pos == GTK_ICON_ENTRY_SECONDARY) - return; - KatzeArray* search_engines; GtkWidget* menu; guint i; @@ -452,6 +448,9 @@ midori_search_action_icon_released_cb (GtkWidget* entry, GdkPixbuf* icon; GtkWidget* image; + if (icon_pos == GTK_ICON_ENTRY_SECONDARY) + return; + search_engines = MIDORI_SEARCH_ACTION (action)->search_engines; menu = gtk_menu_new (); i = 0; -- 2.39.5