From 81864caca687b4a9ec08c61699a3608691f364ab Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 30 May 2002 18:36:20 +0000 Subject: Use bonobo_object_ref() instead of bonobo_object_client_ref() as the * e-folder-list.c (e_folder_list_construct): Use bonobo_object_ref() instead of bonobo_object_client_ref() as the former only refs the CORBA object [Sigh]. * e-shell-config-autocompletion.c (e_shell_config_autocompletion_create_widget): Don't unref the shell_client here, as we need it. :-) svn path=/trunk/; revision=17046 --- shell/ChangeLog | 12 ++++++++++++ shell/e-folder-list.c | 2 +- shell/e-shell-config-autocompletion.c | 4 +--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index 8cac5c663a..be113acdb1 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,15 @@ +2002-05-30 Ettore Perazzoli + + [This fixes #25361.] + + * e-folder-list.c (e_folder_list_construct): Use + bonobo_object_ref() instead of bonobo_object_client_ref() as the + former only refs the CORBA object [Sigh]. + + * e-shell-config-autocompletion.c + (e_shell_config_autocompletion_create_widget): Don't unref the + shell_client here, as we need it. :-) + 2002-05-30 Ettore Perazzoli * e-shell-view-menu.c (command_about_box): Connect diff --git a/shell/e-folder-list.c b/shell/e-folder-list.c index 985eed4f4c..9c53877ab2 100644 --- a/shell/e-folder-list.c +++ b/shell/e-folder-list.c @@ -556,7 +556,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); + bonobo_object_ref (BONOBO_OBJECT (efl->priv->client)); efl->priv->corba_storage_registry = evolution_shell_client_get_storage_registry_interface (client); e_folder_list_set_xml (efl, xml); return GTK_WIDGET (efl); diff --git a/shell/e-shell-config-autocompletion.c b/shell/e-shell-config-autocompletion.c index 819ab0ed7d..71e48fbdd7 100644 --- a/shell/e-shell-config-autocompletion.c +++ b/shell/e-shell-config-autocompletion.c @@ -99,9 +99,7 @@ e_shell_config_autocompletion_create_widget (EShell *shell, EvolutionConfigContr xml = bonobo_config_get_string (ac->db, "/Addressbook/Completion/uris", &ev); - ac->control_widget = e_folder_list_new (ac->shell_client, - xml); - bonobo_object_client_unref (BONOBO_OBJECT_CLIENT (ac->shell_client), NULL); + ac->control_widget = e_folder_list_new (ac->shell_client, xml); g_free (xml); gtk_object_set (GTK_OBJECT (ac->control_widget), -- cgit v1.2.3