aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--addressbook/demo/addressbook-widget.c1
-rw-r--r--addressbook/demo/demo.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a2e5ab0d6d..2cccfb6734 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-31 Christopher James Lahey <clahey@helixcode.com>
+
+ * addressbook/demo/demo.c, addressbook/demo/addressbook-widget.c:
+ Added some missing gtk_object_refs.
+
2000-03-30 Matt Loper <matt@helixcode.com>
* addressbook/backend/pas/pas-backend-file.c
diff --git a/addressbook/demo/addressbook-widget.c b/addressbook/demo/addressbook-widget.c
index fe2a5afaa2..c6ec19e1f9 100644
--- a/addressbook/demo/addressbook-widget.c
+++ b/addressbook/demo/addressbook-widget.c
@@ -433,6 +433,7 @@ create_view(void)
*/
/* Show it all. */
gtk_widget_show_all (view->widget);
+ gtk_object_ref(GTK_OBJECT(view->model));
gtk_object_sink(GTK_OBJECT(view->model));
window_count ++;
return view;
diff --git a/addressbook/demo/demo.c b/addressbook/demo/demo.c
index 34b1f6f2c7..708d7d12a2 100644
--- a/addressbook/demo/demo.c
+++ b/addressbook/demo/demo.c
@@ -434,6 +434,7 @@ create_window(char *filename, ViewType type)
gtk_widget_set_usize (view->window, 200, 200);
/* Show it all. */
gtk_widget_show_all (view->window);
+ gtk_object_ref(GTK_OBJECT(view->model));
gtk_object_sink(GTK_OBJECT(view->model));
window_count ++;
return view->window;