From 905a5cfca0e35d26f6b883b534928d42180594f3 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 3 May 2002 20:40:20 +0000 Subject: Use bonobo_object_client_(un)?ref instead of gtk_object_(un)?ref. 2002-05-03 Christopher James Lahey * e-folder-list.c: Use bonobo_object_client_(un)?ref instead of gtk_object_(un)?ref. (add_clicked): Don't pass NULL to evolution_shell_client_user_select_folder. * glade/Makefile.am: Added e-folder-list.glade * glade/e-folder-list.glade: The glade file for e-folder-list. svn path=/trunk/; revision=16678 --- shell/e-folder-list.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'shell/e-folder-list.c') diff --git a/shell/e-folder-list.c b/shell/e-folder-list.c index 582a513ca7..501523a49c 100644 --- a/shell/e-folder-list.c +++ b/shell/e-folder-list.c @@ -77,6 +77,10 @@ e_folder_list_destroy (GtkObject *object) if (efl->priv->gui) gtk_object_unref(GTK_OBJECT(efl->priv->gui)); + if (efl->priv->client) + bonobo_object_client_unref(BONOBO_OBJECT_CLIENT(efl->priv->client), NULL); + g_free (efl->priv); + efl->priv = NULL; if (GTK_OBJECT_CLASS (parent_class)->destroy) (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); @@ -239,7 +243,7 @@ add_clicked (GtkButton *button, EFolderList *efl) evolution_shell_client_user_select_folder (efl->priv->client, GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (efl))), _("Add a Folder"), - NULL, + "", (const gchar **) efl->priv->possible_types, &folder); @@ -509,6 +513,7 @@ GtkWidget* e_folder_list_construct (EFolderList *efl, EvolutionShellClient *client, char *xml) { efl->priv->client = client; + bonobo_object_client_ref (BONOBO_OBJECT_CLIENT (efl->priv->client), NULL); e_folder_list_set_xml (efl, xml); return GTK_WIDGET (efl); } -- cgit