aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-03-21 03:36:31 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-03-21 03:36:31 +0800
commit618f8727980b598ef6bd2d6ea0239e7840f82a4c (patch)
treed57639ab3fef470147bfefa2ff5828291f917d26
parent8d9be87caabc2548b11548eeb4697683394301a7 (diff)
downloadgsoc2013-evolution-618f8727980b598ef6bd2d6ea0239e7840f82a4c.tar
gsoc2013-evolution-618f8727980b598ef6bd2d6ea0239e7840f82a4c.tar.gz
gsoc2013-evolution-618f8727980b598ef6bd2d6ea0239e7840f82a4c.tar.bz2
gsoc2013-evolution-618f8727980b598ef6bd2d6ea0239e7840f82a4c.tar.lz
gsoc2013-evolution-618f8727980b598ef6bd2d6ea0239e7840f82a4c.tar.xz
gsoc2013-evolution-618f8727980b598ef6bd2d6ea0239e7840f82a4c.tar.zst
gsoc2013-evolution-618f8727980b598ef6bd2d6ea0239e7840f82a4c.zip
calcomponents are gobjects now (calconduit_load_configuration): ref and
2003-03-20 JP Rosevear <jpr@ximian.com> * conduits/calendar/calendar-conduit.c (e_calendar_context_destroy): calcomponents are gobjects now (calconduit_load_configuration): ref and sink to avoid warnings * conduits/todo/todo-conduit.c (todoconduit_load_configuration): ref and sink to avoid warnings (e_todo_context_destroy): calcomponents are gobjects now svn path=/trunk/; revision=20437
-rw-r--r--calendar/ChangeLog10
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c6
-rw-r--r--calendar/conduits/todo/todo-conduit.c6
3 files changed, 20 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 7cbce3bf51..ea77c1ab76 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,13 @@
+2003-03-20 JP Rosevear <jpr@ximian.com>
+
+ * conduits/calendar/calendar-conduit.c
+ (e_calendar_context_destroy): calcomponents are gobjects now
+ (calconduit_load_configuration): ref and sink to avoid warnings
+
+ * conduits/todo/todo-conduit.c (todoconduit_load_configuration):
+ ref and sink to avoid warnings
+ (e_todo_context_destroy): calcomponents are gobjects now
+
2003-03-20 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/cancel-comp.c (cancel_component_dialog): use a
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index b035d1775c..94bc2c3fd0 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -118,7 +118,11 @@ calconduit_load_configuration (guint32 pilot_id)
/* Sync Type */
management = gnome_pilot_conduit_management_new ("e_calendar_conduit", GNOME_PILOT_CONDUIT_MGMT_ID);
+ gtk_object_ref (GTK_OBJECT (management));
+ gtk_object_sink (GTK_OBJECT (management));
config = gnome_pilot_conduit_config_new (management, pilot_id);
+ gtk_object_ref (GTK_OBJECT (config));
+ gtk_object_sink (GTK_OBJECT (config));
if (!gnome_pilot_conduit_config_is_enabled (config, &c->sync_type))
c->sync_type = GnomePilotConduitSyncTypeNotSet;
gtk_object_unref (GTK_OBJECT (config));
@@ -308,7 +312,7 @@ e_calendar_context_destroy (ECalConduitContext *ctxt)
if (ctxt->client != NULL)
g_object_unref (ctxt->client);
if (ctxt->default_comp != NULL)
- gtk_object_unref (GTK_OBJECT (ctxt->default_comp));
+ g_object_unref (ctxt->default_comp);
if (ctxt->uids != NULL)
cal_obj_uid_list_free (ctxt->uids);
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index 18819b9b70..98f586716d 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -117,7 +117,11 @@ todoconduit_load_configuration (guint32 pilot_id)
c->pilot_id = pilot_id;
management = gnome_pilot_conduit_management_new ("e_todo_conduit", GNOME_PILOT_CONDUIT_MGMT_ID);
+ gtk_object_ref (GTK_OBJECT (management));
+ gtk_object_sink (GTK_OBJECT (management));
config = gnome_pilot_conduit_config_new (management, pilot_id);
+ gtk_object_ref (GTK_OBJECT (config));
+ gtk_object_sink (GTK_OBJECT (config));
if (!gnome_pilot_conduit_config_is_enabled (config, &c->sync_type))
c->sync_type = GnomePilotConduitSyncTypeNotSet;
gtk_object_unref (GTK_OBJECT (config));
@@ -308,7 +312,7 @@ e_todo_context_destroy (EToDoConduitContext *ctxt)
g_object_unref (ctxt->client);
if (ctxt->default_comp != NULL)
- gtk_object_unref (GTK_OBJECT (ctxt->default_comp));
+ g_object_unref (ctxt->default_comp);
if (ctxt->uids != NULL)
cal_obj_uid_list_free (ctxt->uids);