[Xfce4-commits] <midori:master> Move declaration in search action icon callback to the top

Christian Dywan noreply at xfce.org
Fri Jan 29 21:14:05 CET 2010


Updating branch refs/heads/master
         to 37d89d0986c65218536d81db81bcac5d130fc190 (commit)
       from 218a05049c435142689d2b29b7e7618ac37515e7 (commit)

commit 37d89d0986c65218536d81db81bcac5d130fc190
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Jan 29 21:13:44 2010 +0100

    Move declaration in search action icon callback to the top

 midori/midori-searchaction.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c
index e6d5de7..0b5f681 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;



More information about the Xfce4-commits mailing list