aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/ChangeLog4
-rw-r--r--widgets/menus/gal-view-menus.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog
index 80ffca1cf9..d96c40de8e 100644
--- a/widgets/ChangeLog
+++ b/widgets/ChangeLog
@@ -1,3 +1,7 @@
+2002-08-15 Mike Kestner <mkestner@ximian.com>
+
+ * menus/gal-view-menus.c (build_stuff): ref/unref the gvm
+
2002-07-09 Peter Williams <peterw@ximian.com>
* e-timezone-dialog/Makefile.am: Add -I$(top_builddir)/libical/src/libical;
diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c
index aa73e8ac32..1595e6f144 100644
--- a/widgets/menus/gal-view-menus.c
+++ b/widgets/menus/gal-view-menus.c
@@ -433,6 +433,8 @@ build_stuff (GalViewMenus *gvm,
{
char *xml;
+ gtk_object_ref (gvm);
+
gal_view_menus_unmerge (gvm, ev);
remove_listeners(gvm);
@@ -444,6 +446,8 @@ build_stuff (GalViewMenus *gvm,
bonobo_ui_component_add_verb_list_with_data(gvm->priv->component, verbs, gvm);
set_radio (gvm, ev);
+
+ gtk_object_unref (gvm);
}
void