]> spindle.queued.net Git - midori/commitdiff
Move declaration in search action icon callback to the top
authorChristian Dywan <christian@twotoasts.de>
Fri, 29 Jan 2010 20:13:44 +0000 (21:13 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 29 Jan 2010 20:13:44 +0000 (21:13 +0100)
midori/midori-searchaction.c

index e6d5de7917b43f24b98c1feec192614493f77e4f..0b5f68105d3a7b2d7ae2a8984066239ca82833c3 100644 (file)
@@ -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;