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/ChangeLog | 11 ++++ shell/e-folder-list.c | 7 ++- shell/glade/Makefile.am | 3 +- shell/glade/e-folder-list.glade | 129 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 148 insertions(+), 2 deletions(-) create mode 100644 shell/glade/e-folder-list.glade diff --git a/shell/ChangeLog b/shell/ChangeLog index c47a18101d..32f49c3c42 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,14 @@ +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. + 2002-05-03 Christopher James Lahey * Makefile.am (eshellinclude_HEADERS): Added e-folder-list.h. 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); } diff --git a/shell/glade/Makefile.am b/shell/glade/Makefile.am index a53765cda5..ada34672bd 100644 --- a/shell/glade/Makefile.am +++ b/shell/glade/Makefile.am @@ -4,6 +4,7 @@ glade_DATA = \ e-active-connection-dialog.glade \ e-shell-config-default-folders.glade \ e-shell-folder-creation-dialog.glade \ - evolution-startup-wizard.glade + evolution-startup-wizard.glade \ + e-folder-list.glade EXTRA_DIST = $(glade_DATA) diff --git a/shell/glade/e-folder-list.glade b/shell/glade/e-folder-list.glade new file mode 100644 index 0000000000..411a6da0ec --- /dev/null +++ b/shell/glade/e-folder-list.glade @@ -0,0 +1,129 @@ + + + + + e-addressbook-folder-list + e-addressbook-folder-list + + src + pixmaps + C + True + True + False + False + False + + + + GtkWindow + window-contents-reparented + False + window1 + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + False + True + False + + + GtkFrame + frame-toplevel + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox1 + False + 0 + + + Custom + custom-optionmenu + create_custom_optionmenu + 0 + 0 + Fri, 22 Mar 2002 15:09:48 GMT + + 0 + False + True + + + + + GtkHBox + hbox1 + False + 0 + + 0 + True + True + + + + Custom + custom-folder-list + create_custom_folder_list + 0 + 0 + Tue, 19 Mar 2002 18:07:28 GMT + + 0 + True + True + + + + + GtkVButtonBox + vbuttonbox1 + GTK_BUTTONBOX_START + 0 + 85 + 27 + 7 + 0 + + 0 + False + False + + + + GtkButton + button-add + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + button-edit + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + button-remove + True + True + + GTK_RELIEF_NORMAL + + + + + + + + -- cgit v1.2.3