diff options
author | Chris Toshok <toshok@ximian.com> | 2003-01-27 14:54:38 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2003-01-27 14:54:38 +0800 |
commit | 8ca6264cde3bfdb439a6c49430045719c5ea1fc3 (patch) | |
tree | 1016416ce594349d69c01470a2fa7621d1edcf99 /calendar/conduits/todo | |
parent | d79f733942e7e9b308cc1e5691e0fd3d2ba697cc (diff) | |
download | gsoc2013-evolution-8ca6264cde3bfdb439a6c49430045719c5ea1fc3.tar gsoc2013-evolution-8ca6264cde3bfdb439a6c49430045719c5ea1fc3.tar.gz gsoc2013-evolution-8ca6264cde3bfdb439a6c49430045719c5ea1fc3.tar.bz2 gsoc2013-evolution-8ca6264cde3bfdb439a6c49430045719c5ea1fc3.tar.lz gsoc2013-evolution-8ca6264cde3bfdb439a6c49430045719c5ea1fc3.tar.xz gsoc2013-evolution-8ca6264cde3bfdb439a6c49430045719c5ea1fc3.tar.zst gsoc2013-evolution-8ca6264cde3bfdb439a6c49430045719c5ea1fc3.zip |
CalClient and CalComponent are GObjects.
2003-01-26 Chris Toshok <toshok@ximian.com>
* conduits/todo/todo-conduit.c: CalClient and CalComponent are
GObjects.
* conduits/calendar/calendar-conduit.c: same.
svn path=/trunk/; revision=19645
Diffstat (limited to 'calendar/conduits/todo')
-rw-r--r-- | calendar/conduits/todo/todo-conduit.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index 7d51e757f8..6c34db34ba 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -84,7 +84,7 @@ struct _EToDoLocalRecord { static void todoconduit_destroy_record (EToDoLocalRecord *local) { - gtk_object_unref (GTK_OBJECT (local->comp)); + g_object_unref (local->comp); free_ToDo (local->todo); g_free (local->todo); g_free (local); @@ -302,7 +302,7 @@ e_todo_context_destroy (EToDoConduitContext *ctxt) e_todo_gui_destroy (ctxt->gui); if (ctxt->client != NULL) - gtk_object_unref (GTK_OBJECT (ctxt->client)); + g_object_unref (ctxt->client); if (ctxt->uids != NULL) cal_obj_uid_list_free (ctxt->uids); @@ -410,8 +410,8 @@ start_calendar_server (EToDoConduitContext *ctxt) ctxt->client = cal_client_new (); - gtk_signal_connect (GTK_OBJECT (ctxt->client), "cal_opened", - (GtkSignalFunc)start_calendar_server_cb, &success); + g_signal_connect (ctxt->client, "cal_opened", + G_CALLBACK (start_calendar_server_cb), &success); if (!cal_client_open_default_tasks (ctxt->client, FALSE)) return -1; @@ -577,7 +577,7 @@ local_record_from_comp (EToDoLocalRecord *local, CalComponent *comp, EToDoCondui g_return_if_fail (comp != NULL); local->comp = comp; - gtk_object_ref (GTK_OBJECT (comp)); + g_object_ref (comp); cal_component_get_uid (local->comp, &uid); local->local.ID = e_pilot_map_lookup_pid (ctxt->map, uid, TRUE); @@ -676,13 +676,13 @@ local_record_from_uid (EToDoLocalRecord *local, if (status == CAL_CLIENT_GET_SUCCESS) { local_record_from_comp (local, comp, ctxt); - gtk_object_unref (GTK_OBJECT (comp)); + g_object_unref (comp); } else if (status == CAL_CLIENT_GET_NOT_FOUND) { comp = cal_component_new (); cal_component_set_new_vtype (comp, CAL_COMPONENT_TODO); cal_component_set_uid (comp, uid); local_record_from_comp (local, comp, ctxt); - gtk_object_unref (GTK_OBJECT (comp)); + g_object_unref (comp); } else { INFO ("Object did not exist"); } @@ -1165,7 +1165,7 @@ add_record (GnomePilotConduitSyncAbs *conduit, cal_component_get_uid (comp, &uid); e_pilot_map_insert (ctxt->map, remote->ID, uid, FALSE); - gtk_object_unref (GTK_OBJECT (comp)); + g_object_unref (comp); return retval; } @@ -1185,7 +1185,7 @@ replace_record (GnomePilotConduitSyncAbs *conduit, print_local (local), print_remote (remote)); new_comp = comp_from_remote_record (conduit, remote, local->comp, ctxt->timezone); - gtk_object_unref (GTK_OBJECT (local->comp)); + g_object_unref (local->comp); local->comp = new_comp; update_comp (conduit, local->comp, ctxt); |