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 | |
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')
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/conduits/calendar/calendar-conduit.c | 20 | ||||
-rw-r--r-- | calendar/conduits/todo/todo-conduit.c | 18 |
3 files changed, 26 insertions, 19 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 573d597138..adebdc25af 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,12 @@ 2003-01-26 Chris Toshok <toshok@ximian.com> + * conduits/todo/todo-conduit.c: CalClient and CalComponent are + GObjects. + + * conduits/calendar/calendar-conduit.c: same. + +2003-01-26 Chris Toshok <toshok@ximian.com> + * conduits/calendar/calendar-conduit.c (start_calendar_server): fix warning. (get_default_timezone): BonoboConfigDatabase -> e_config_listener. diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c index a454190764..a24780da67 100644 --- a/calendar/conduits/calendar/calendar-conduit.c +++ b/calendar/conduits/calendar/calendar-conduit.c @@ -85,7 +85,7 @@ struct _ECalLocalRecord { static void calconduit_destroy_record (ECalLocalRecord *local) { - gtk_object_unref (GTK_OBJECT (local->comp)); + g_object_unref (local->comp); free_Appointment (local->appt); g_free (local->appt); g_free (local); @@ -304,7 +304,7 @@ e_calendar_context_destroy (ECalConduitContext *ctxt) e_cal_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); @@ -405,8 +405,8 @@ start_calendar_server (ECalConduitContext *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_calendar (ctxt->client, FALSE)) return -1; @@ -736,7 +736,7 @@ local_record_from_comp (ECalLocalRecord *local, CalComponent *comp, ECalConduitC 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); @@ -970,13 +970,13 @@ local_record_from_uid (ECalLocalRecord *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_EVENT); 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"); } @@ -1315,7 +1315,7 @@ pre_sync (GnomePilotConduit *conduit, cal_component_get_uid (ccc->comp, &uid); if (e_pilot_map_lookup_pid (ctxt->map, uid, FALSE) == 0) { ctxt->changed = g_list_remove (ctxt->changed, ccc); - gtk_object_unref (GTK_OBJECT (ccc->comp)); + g_object_unref (ccc->comp); g_free (ccc); } } @@ -1587,7 +1587,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; } @@ -1607,7 +1607,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); 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); |