Move declaration in search action icon callback to the top
This commit is contained in:
parent
218a05049c
commit
37d89d0986
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue