From 6ce483ec6c419969a09aa9ce5ec53b2515957788 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 29 May 2001 19:13:30 +0000 Subject: unref the control when finished with it (setup_offline_toggle): ditto 2001-05-29 JP Rosevear * e-shell-view.c (setup_progress_bar): unref the control when finished with it (setup_offline_toggle): ditto (destroy): destroy offline and progress widgets svn path=/trunk/; revision=10043 --- shell/e-shell-view.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'shell/e-shell-view.c') diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index d2c5159620..8da4b53dc9 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -641,9 +641,10 @@ setup_offline_toggle (EShellView *shell_view) g_return_if_fail (control != NULL); bonobo_ui_component_object_set (priv->ui_component, "/status/OfflineToggle", - bonobo_object_corba_objref (BONOBO_OBJECT (control)), + BONOBO_OBJREF (control), NULL); - + bonobo_object_unref (control); + priv->offline_toggle = toggle; priv->offline_toggle_pixmap = pixmap; @@ -671,8 +672,9 @@ setup_progress_bar (EShellView *shell_view) g_return_if_fail (control != NULL); bonobo_ui_component_object_set (priv->ui_component, "/status/Progress", - bonobo_object_corba_objref (BONOBO_OBJECT (control)), + BONOBO_OBJREF (control), NULL); + bonobo_object_unref (control); } static void @@ -807,6 +809,10 @@ destroy (GtkObject *object) g_hash_table_foreach (priv->uri_to_control, hash_forall_destroy_control, NULL); g_hash_table_destroy (priv->uri_to_control); + gtk_widget_destroy (priv->offline_toggle); + gtk_widget_destroy (priv->offline_toggle_pixmap); + gtk_widget_destroy (priv->progress_bar); + bonobo_object_unref (BONOBO_OBJECT (priv->ui_component)); g_free (priv->uri); -- cgit v1.2.3