aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-search-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-search-bar.c')
-rw-r--r--widgets/misc/e-search-bar.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 7675c15945..5b1af11ad8 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -612,7 +612,7 @@ set_option (ESearchBar *esb, ESearchBarItem *items)
GSList *group = NULL;
int i;
- if (esb->option)
+ if (esb->option_menu)
gtk_widget_destroy (esb->option_menu);
esb->option_menu = menu = gtk_menu_new ();
@@ -660,8 +660,6 @@ set_option (ESearchBar *esb, ESearchBarItem *items)
gtk_widget_show_all (menu);
- gtk_option_menu_set_history (GTK_OPTION_MENU (esb->option), 0);
-
entry_focus_out_cb (esb->entry, NULL, esb);
}