aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-search-bar.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 5bda4e70ab..5bd370d5d0 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-13 Larry Ewing <lewing@ximian.com>
+
+ * e-search-bar.c (set_dropdown): unref the old dropdown_menu if
+ there is one.
+
2001-09-12 Jeffrey Stedfast <fejj@ximian.com>
* e-filter-bar.c (menubar_activated): No longer need the context
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 495bc93afb..cadc921593 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -325,6 +325,9 @@ set_dropdown (ESearchBar *esb,
GtkWidget *dropdown;
int i;
+ if (esb->dropdown_menu)
+ gtk_widget_unref (esb->dropdown_menu);
+
menu = esb->dropdown_menu = gtk_menu_new ();
for (i = 0; items[i].id != -1; i++)
add_dropdown (esb, items + i);