Move declaration in search action icon callback to the top

This commit is contained in:
Christian Dywan 2010-01-29 21:13:44 +01:00
parent 218a05049c
commit 37d89d0986

View file

@ -440,10 +440,6 @@ midori_search_action_icon_released_cb (GtkWidget* entry,
gint button, gint button,
GtkAction* action) GtkAction* action)
{ {
if (icon_pos == GTK_ICON_ENTRY_SECONDARY)
return;
KatzeArray* search_engines; KatzeArray* search_engines;
GtkWidget* menu; GtkWidget* menu;
guint i; guint i;
@ -452,6 +448,9 @@ midori_search_action_icon_released_cb (GtkWidget* entry,
GdkPixbuf* icon; GdkPixbuf* icon;
GtkWidget* image; GtkWidget* image;
if (icon_pos == GTK_ICON_ENTRY_SECONDARY)
return;
search_engines = MIDORI_SEARCH_ACTION (action)->search_engines; search_engines = MIDORI_SEARCH_ACTION (action)->search_engines;
menu = gtk_menu_new (); menu = gtk_menu_new ();
i = 0; i = 0;