aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-09-13 17:12:52 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-09-13 17:12:52 +0800
commit67960443133d01e6d1a3e1b7103c461ef0ce5be9 (patch)
tree4be98427b8896300b16f2533fd506ae763e64e65
parenta44e494e2de669966d2035137736366f813fe6ad (diff)
downloadgsoc2013-evolution-67960443133d01e6d1a3e1b7103c461ef0ce5be9.tar
gsoc2013-evolution-67960443133d01e6d1a3e1b7103c461ef0ce5be9.tar.gz
gsoc2013-evolution-67960443133d01e6d1a3e1b7103c461ef0ce5be9.tar.bz2
gsoc2013-evolution-67960443133d01e6d1a3e1b7103c461ef0ce5be9.tar.lz
gsoc2013-evolution-67960443133d01e6d1a3e1b7103c461ef0ce5be9.tar.xz
gsoc2013-evolution-67960443133d01e6d1a3e1b7103c461ef0ce5be9.tar.zst
gsoc2013-evolution-67960443133d01e6d1a3e1b7103c461ef0ce5be9.zip
unref the old dropdown_menu if there is one.
2001-09-13 Larry Ewing <lewing@ximian.com> * e-search-bar.c (set_dropdown): unref the old dropdown_menu if there is one. svn path=/trunk/; revision=12796
-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);