aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorSivaiah Nallagatla <snallagatla@novell.com>2004-08-16 11:36:31 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-08-16 11:36:31 +0800
commit8f703a0b08fbb91f1091cb7ac3941fb8b0e011ee (patch)
tree3bb36fd86c0e36c81e536e241cd7c475ce0e42a8 /calendar/gui
parent6b9af3bc4616208e7ff06a6d755618057130129f (diff)
downloadgsoc2013-evolution-8f703a0b08fbb91f1091cb7ac3941fb8b0e011ee.tar
gsoc2013-evolution-8f703a0b08fbb91f1091cb7ac3941fb8b0e011ee.tar.gz
gsoc2013-evolution-8f703a0b08fbb91f1091cb7ac3941fb8b0e011ee.tar.bz2
gsoc2013-evolution-8f703a0b08fbb91f1091cb7ac3941fb8b0e011ee.tar.lz
gsoc2013-evolution-8f703a0b08fbb91f1091cb7ac3941fb8b0e011ee.tar.xz
gsoc2013-evolution-8f703a0b08fbb91f1091cb7ac3941fb8b0e011ee.tar.zst
gsoc2013-evolution-8f703a0b08fbb91f1091cb7ac3941fb8b0e011ee.zip
initialize priv->default_lcient (default_client_cal_opened_cb) : unref
2004-08-14 Sivaiah Nallagatla <snallagatla@novell.com> * gui/e-tasks.c (e_tasks_init) : initialize priv->default_lcient (default_client_cal_opened_cb) : unref priv->default_client and make it NULL (client_cal_opened_cb) : don't unref client explicitly as removing from priv->clients already does that. Remove client based on uid instead of uri (backend_died_cb) : Remove client based on uid insted of uri Fixes #62869 svn path=/trunk/; revision=26943
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-tasks.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index 80ae78142a..b90ced8a6e 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -610,7 +610,7 @@ e_tasks_init (ETasks *tasks)
priv->view_menus = NULL;
priv->current_uid = NULL;
priv->sexp = g_strdup ("#t");
-
+ priv->default_client = NULL;
update_view (tasks);
}
@@ -761,7 +761,7 @@ backend_died_cb (ECal *client, gpointer data)
source = g_object_ref (e_cal_get_source (client));
priv->clients_list = g_list_remove (priv->clients_list, client);
- g_hash_table_remove (priv->clients, e_cal_get_uri (client));
+ g_hash_table_remove (priv->clients, e_source_peek_uid (source));
gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SOURCE_REMOVED], source);
@@ -807,12 +807,11 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, ETasks *tasks)
0, 0, NULL, NULL, tasks);
/* Do this last because it unrefs the client */
- g_hash_table_remove (priv->clients, e_cal_get_uri (ecal));
+ g_hash_table_remove (priv->clients, e_source_peek_uid (source));
gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SOURCE_REMOVED], source);
set_status_message (tasks, NULL);
- g_object_unref (ecal);
g_object_unref (source);
break;
@@ -849,12 +848,13 @@ default_client_cal_opened_cb (ECal *ecal, ECalendarStatus status, ETasks *tasks)
0, 0, NULL, NULL, tasks);
/* Do this last because it unrefs the client */
- g_hash_table_remove (priv->clients, e_cal_get_uri (ecal));
+ g_hash_table_remove (priv->clients, e_source_peek_uid (source));
gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SOURCE_REMOVED], source);
set_status_message (tasks, NULL);
- g_object_unref (ecal);
+ g_object_unref (priv->default_client);
+ priv->default_client = NULL;
g_object_unref (source);
break;