aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-09 05:50:53 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-09 05:50:53 +0800
commitcdbcf964e2829e4c4002dcf2fd229f3b2cf88e56 (patch)
treef52623441706592fddc32ebf439f137c6e27d992 /calendar/gui/e-day-view.c
parente93ca197f1fd37e2a35020f8717fe3c9547cfb2f (diff)
downloadgsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.gz
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.bz2
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.lz
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.xz
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.zst
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.zip
Use g_object_ref()/g_object_unref() instead of
* calendar-commands.c: Use g_object_ref()/g_object_unref() instead of gtk_object_ref/gtk_object_unref(). * calendar-config.c: Likewise. * calendar-model.c: Likewise. * comp-editor-factory.c: Likewise. * comp-util.c: Likewise. * e-calendar-table.c: Likewise. * e-day-view.c: Likewise. * e-itip-control.c: Likewise. * e-meeting-model.c: Likewise. * e-meeting-time-sel.c: Likewise. * e-tasks.c: Likewise. * e-timezone-entry.c: Likewise. * e-week-view.c: Likewise. * gnome-cal.c: Likewise. * goto.c: Likewise. * itip-utils.c: Likewise. * print.c: Likewise. * tasks-control.c: Likewise. * tasks-migrate.c: Likewise. * gui/cal-search-bar.c: Use g_object_new() instead of gtk_type_new(). * gui/calendar-model.c: Likewise. * gui/calendar-view-factory.c: Likewise. * gui/calendar-view.c: Likewise. * gui/calendar-view.c: Likewise. * gui/comp-editor-factory.c: Likewise. * gui/e-calendar-table.c: Likewise. * gui/e-cell-date-edit-text.c: Likewise. * gui/e-comp-editor-registry.c: Likewise. * gui/e-day-view.c: Likewise. * gui/e-itip-control.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-model.c: Likewise. * gui/e-meeting-time-sel.c: Likewise. * gui/e-tasks.c: Likewise. * gui/e-timezone-entry.c: Likewise. * gui/e-week-view.c: Likewise. * gui/gnome-cal.c: Likewise. * gui/weekday-picker.c: Likewise. * gui/e-itip-control.c (get_servers): g_object_unref the shell_client instead of using bonobo_object_unref(). * gui/component-factory.c (owner_set_cb): Use evolution_shell_client_corba_objref() instead of bonobo_object_corba_objref(). svn path=/trunk/; revision=18673
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index c0c7e730c7..31f210e17e 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -895,7 +895,7 @@ e_day_view_new (void)
{
GtkWidget *day_view;
- day_view = GTK_WIDGET (gtk_type_new (e_day_view_get_type ()));
+ day_view = GTK_WIDGET (g_object_new (e_day_view_get_type (), NULL));
return day_view;
}
@@ -915,7 +915,7 @@ e_day_view_destroy (GtkObject *object)
if (day_view->client) {
gtk_signal_disconnect_by_data (GTK_OBJECT (day_view->client), day_view);
- gtk_object_unref (GTK_OBJECT (day_view->client));
+ g_object_unref (day_view->client);
day_view->client = NULL;
}
@@ -926,7 +926,7 @@ e_day_view_destroy (GtkObject *object)
if (day_view->query) {
gtk_signal_disconnect_by_data (GTK_OBJECT (day_view->query), day_view);
- gtk_object_unref (GTK_OBJECT (day_view->query));
+ g_object_unref (day_view->query);
day_view->query = NULL;
}
@@ -961,7 +961,7 @@ e_day_view_destroy (GtkObject *object)
}
if (day_view->activity) {
- gtk_object_unref (GTK_OBJECT (day_view->activity));
+ g_object_unref (day_view->activity);
day_view->activity = NULL;
}
@@ -1544,7 +1544,7 @@ query_obj_updated_cb (CalQuery *query, const char *uid,
g_print ("updated object's dates unchanged\n");
#endif
e_day_view_foreach_event_with_uid (day_view, uid, e_day_view_update_event_cb, comp);
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
gtk_widget_queue_draw (day_view->top_canvas);
gtk_widget_queue_draw (day_view->main_canvas);
return;
@@ -1566,7 +1566,7 @@ query_obj_updated_cb (CalQuery *query, const char *uid,
e_day_view_add_event, day_view,
cal_client_resolve_tzid_cb, day_view->client,
day_view->zone);
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
e_day_view_queue_layout (day_view);
}
@@ -1672,7 +1672,7 @@ update_query (EDayView *day_view)
if (old_query) {
gtk_signal_disconnect_by_data (GTK_OBJECT (old_query), day_view);
- gtk_object_unref (GTK_OBJECT (old_query));
+ g_object_unref (old_query);
}
g_assert (day_view->sexp != NULL);
@@ -1735,11 +1735,11 @@ e_day_view_set_cal_client (EDayView *day_view,
g_return_if_fail (IS_CAL_CLIENT (client));
if (client)
- gtk_object_ref (GTK_OBJECT (client));
+ g_object_ref (client);
if (day_view->client) {
gtk_signal_disconnect_by_data (GTK_OBJECT (day_view->client), day_view);
- gtk_object_unref (GTK_OBJECT (day_view->client));
+ g_object_unref (day_view->client);
}
day_view->client = client;
@@ -1819,9 +1819,9 @@ e_day_view_update_event_cb (EDayView *day_view,
event_num);
}
- gtk_object_unref (GTK_OBJECT (event->comp));
+ g_object_unref (event->comp);
event->comp = comp;
- gtk_object_ref (GTK_OBJECT (comp));
+ g_object_ref (comp);
if (day == E_DAY_VIEW_LONG_EVENT) {
e_day_view_update_long_event_label (day_view, event_num);
@@ -1945,7 +1945,7 @@ e_day_view_remove_event_cb (EDayView *day_view,
if (event->canvas_item)
gtk_object_destroy (GTK_OBJECT (event->canvas_item));
- gtk_object_unref (GTK_OBJECT (event->comp));
+ g_object_unref (event->comp);
if (day == E_DAY_VIEW_LONG_EVENT) {
g_array_remove_index (day_view->long_events, event_num);
@@ -4075,7 +4075,7 @@ e_day_view_on_publish (GtkWidget *widget, gpointer data)
itip_send_comp (CAL_COMPONENT_METHOD_PUBLISH, comp,
day_view->client, NULL);
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
}
g_list_free (comp_list);
@@ -4113,7 +4113,7 @@ e_day_view_on_delete_occurrence (GtkWidget *widget, gpointer data)
if (cal_client_update_object (day_view->client, comp) != CAL_CLIENT_RESULT_SUCCESS)
g_message ("e_day_view_on_delete_occurrence(): Could not update the object!");
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
}
static void
@@ -4308,12 +4308,12 @@ e_day_view_on_unrecur_appointment (GtkWidget *widget, gpointer data)
if (cal_client_update_object (day_view->client, comp) != CAL_CLIENT_RESULT_SUCCESS)
g_message ("e_day_view_on_unrecur_appointment(): Could not update the object!");
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
if (cal_client_update_object (day_view->client, new_comp) != CAL_CLIENT_RESULT_SUCCESS)
g_message ("e_day_view_on_unrecur_appointment(): Could not update the object!");
- gtk_object_unref (GTK_OBJECT (new_comp));
+ g_object_unref (new_comp);
}
@@ -4851,7 +4851,7 @@ e_day_view_finish_long_event_resize (EDayView *day_view)
g_message ("e_day_view_finish_long_event_resize(): Could not update the object!");
}
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
}
@@ -4912,7 +4912,7 @@ e_day_view_finish_resize (EDayView *day_view)
g_message ("e_day_view_finish_resize(): Could not update the object!");
}
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
}
@@ -4984,7 +4984,7 @@ e_day_view_free_event_array (EDayView *day_view,
event = &g_array_index (array, EDayViewEvent, event_num);
if (event->canvas_item)
gtk_object_destroy (GTK_OBJECT (event->canvas_item));
- gtk_object_unref (GTK_OBJECT (event->comp));
+ g_object_unref (event->comp);
}
g_array_set_size (array, 0);
@@ -5024,7 +5024,7 @@ e_day_view_add_event (CalComponent *comp,
day_view->zone);
event.comp = comp;
- gtk_object_ref (GTK_OBJECT (comp));
+ g_object_ref (comp);
event.start = start;
event.end = end;
event.canvas_item = NULL;
@@ -5679,7 +5679,7 @@ e_day_view_key_press (GtkWidget *widget, GdkEventKey *event)
if (initial_text)
g_free (initial_text);
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
return TRUE;
}
@@ -7313,7 +7313,7 @@ e_day_view_on_top_canvas_drag_data_received (GtkWidget *widget,
"not update the object!");
}
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
return;
}
@@ -7427,7 +7427,7 @@ e_day_view_on_main_canvas_drag_data_received (GtkWidget *widget,
"Could not update the object!");
}
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
return;
}
@@ -7585,7 +7585,7 @@ selection_received (GtkWidget *invisible,
cal_client_update_object (day_view->client, comp);
free (uid);
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
}
subcomp = icalcomponent_get_next_component (
@@ -7614,7 +7614,7 @@ selection_received (GtkWidget *invisible,
if (itip_organizer_is_user (comp) && send_component_dialog (comp, TRUE))
itip_send_comp (CAL_COMPONENT_METHOD_REQUEST, comp, day_view->client, NULL);
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
}
e_day_view_set_status_message (day_view, NULL);
@@ -7692,7 +7692,7 @@ e_day_view_set_status_message (EDayView *day_view, const char *message)
if (!message || !*message) {
if (day_view->activity) {
- gtk_object_unref (GTK_OBJECT (day_view->activity));
+ g_object_unref (day_view->activity);
day_view->activity = NULL;
}
}