aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-folder-list.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-05-04 04:40:20 +0800
committerChris Lahey <clahey@src.gnome.org>2002-05-04 04:40:20 +0800
commit905a5cfca0e35d26f6b883b534928d42180594f3 (patch)
tree38e0461fd5dabc4738642ebc75af380dec284c55 /shell/e-folder-list.c
parent85d3d3acd8aa8af7bda96f769557aa89b4e0ce8d (diff)
downloadgsoc2013-evolution-905a5cfca0e35d26f6b883b534928d42180594f3.tar.gz
gsoc2013-evolution-905a5cfca0e35d26f6b883b534928d42180594f3.tar.zst
gsoc2013-evolution-905a5cfca0e35d26f6b883b534928d42180594f3.zip
Use bonobo_object_client_(un)?ref instead of gtk_object_(un)?ref.
2002-05-03 Christopher James Lahey <clahey@ximian.com> * 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
Diffstat (limited to 'shell/e-folder-list.c')
-rw-r--r--shell/e-folder-list.c7
1 files changed, 6 insertions, 1 deletions
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);
}