From 67960443133d01e6d1a3e1b7103c461ef0ce5be9 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Thu, 13 Sep 2001 09:12:52 +0000 Subject: unref the old dropdown_menu if there is one. 2001-09-13 Larry Ewing * e-search-bar.c (set_dropdown): unref the old dropdown_menu if there is one. svn path=/trunk/; revision=12796 --- widgets/misc/ChangeLog | 5 +++++ widgets/misc/e-search-bar.c | 3 +++ 2 files changed, 8 insertions(+) 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 + + * e-search-bar.c (set_dropdown): unref the old dropdown_menu if + there is one. + 2001-09-12 Jeffrey Stedfast * 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); -- cgit