Properly ref & sink the table and header models.

2000-03-20  Christopher James Lahey  <clahey@helixcode.com>

        * message-list.c: Properly ref & sink the table and header models.

svn path=/trunk/; revision=2126
This commit is contained in:
Christopher James Lahey
2000-03-21 02:54:37 +00:00
committed by Chris Lahey
parent f60b9107e9
commit 5bc23d188a
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -1,3 +1,7 @@
2000-03-20 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Properly ref & sink the table and header models.
2000-03-14 Dan Winship <danw@helixcode.com>
* mail-sources.c: First cut at a mail source selection wizard.
+5
View File
@@ -320,6 +320,8 @@ message_list_init_header (MessageList *message_list)
*/
message_list->header_model = e_table_header_new ();
gtk_object_ref(GTK_OBJECT(message_list->header_model));
gtk_object_sink(GTK_OBJECT(message_list->header_model));
message_list->table_cols [COL_ONLINE_STATUS] =
e_table_col_new (COL_ONLINE_STATUS, _("Online status"),
@@ -424,6 +426,9 @@ message_list_init (GtkObject *object)
gtk_widget_show(message_list->etable);
gtk_object_ref(message_list->table_model);
gtk_object_sink(message_list->table_model);
/*
* We do own the Etable, not some widget container
*/