From 0fbe9a34fff10a2a1418f7fb8e7d36ce4a85c605 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sun, 22 Jul 2001 01:40:25 +0000 Subject: Use `g_source_remove()' instead of `gtk_timeout_remove()' here, as we are * evolution-activity-client.c (impl_destroy): Use `g_source_remove()' instead of `gtk_timeout_remove()' here, as we are using `g_timeout_add()' and not `gtk_timeout_add()' to set up the timeout callback. (update_timeout_callback): Reset `have_pending_update' when returning %TRUE. Set the timeout id to zero when returning %FALSE. svn path=/trunk/; revision=11295 --- shell/ChangeLog | 10 ++++++++++ shell/evolution-activity-client.c | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index c452918e3e..266a02140e 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,13 @@ +2001-07-21 Ettore Perazzoli + + * evolution-activity-client.c (impl_destroy): Use + `g_source_remove()' instead of `gtk_timeout_remove()' here, as we + are using `g_timeout_add()' and not `gtk_timeout_add()' to set up + the timeout callback. + (update_timeout_callback): Reset `have_pending_update' when + returning %TRUE. Set the timeout id to zero when returning + %FALSE. + 2001-07-20 Jason Leach [Fix a crash if you start evolution with a bad URI.] diff --git a/shell/evolution-activity-client.c b/shell/evolution-activity-client.c index 1bb74f6dda..60e9f949d9 100644 --- a/shell/evolution-activity-client.c +++ b/shell/evolution-activity-client.c @@ -190,8 +190,10 @@ update_timeout_callback (void *data) if (priv->have_pending_update) { corba_update_progress (activity_client, priv->new_information, priv->new_progress); + priv->have_pending_update = FALSE; return TRUE; } else { + priv->next_update_timeout_id = 0; return FALSE; } } @@ -247,7 +249,7 @@ impl_destroy (GtkObject *object) CORBA_exception_free (&ev); if (priv->next_update_timeout_id != 0) - gtk_timeout_remove (priv->next_update_timeout_id); + g_source_remove (priv->next_update_timeout_id); g_free (priv->new_information); -- cgit