aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-09 06:11:10 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-09 06:11:10 +0800
commite0dfbb056c3dcdbc1a29823b6c273901ade29598 (patch)
tree237e558c2e4cbb8141351fdb86d09bd000c6a05c /calendar/gui/e-week-view.c
parentcdbcf964e2829e4c4002dcf2fd229f3b2cf88e56 (diff)
downloadgsoc2013-evolution-e0dfbb056c3dcdbc1a29823b6c273901ade29598.tar.gz
gsoc2013-evolution-e0dfbb056c3dcdbc1a29823b6c273901ade29598.tar.zst
gsoc2013-evolution-e0dfbb056c3dcdbc1a29823b6c273901ade29598.zip
Use g_object_set_data(..., NULL) instead of gtk_object_remove_data().
* gui/calendar-commands.c (calendar_control_deactivate): Use g_object_set_data(..., NULL) instead of gtk_object_remove_data(). * gui/calendar-commands.c: Use g_object_{set,get}_* functions instead of gtk_object_{set,get}_*. * gui/calendar-commands.c: Likewise. * gui/calendar-config.c: Likewise. * gui/control-factory.c: Likewise. * gui/e-calendar-table.c: Likewise. * gui/e-comp-editor-registry.c: Likewise. * gui/e-day-view-main-item.c: Likewise. * gui/e-day-view-time-item.c: Likewise. * gui/e-day-view-top-item.c: Likewise. * gui/e-day-view.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-model.c: Likewise. * gui/e-meeting-time-sel-item.c: Likewise. * gui/e-meeting-time-sel.c: Likewise. * gui/e-week-view-event-item.c: Likewise. * gui/e-week-view-layout.c: Likewise. * gui/e-week-view-main-item.c: Likewise. * gui/e-week-view-titles-item.c: Likewise. * gui/e-week-view.c: Likewise. * gui/gnome-cal.c: Likewise. * gui/print.c: Likewise. svn path=/trunk/; revision=18674
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 413f2ef0de..88a6565e16 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2789,9 +2789,7 @@ e_week_view_reshape_event_span (EWeekView *week_view,
/* Get the width of the text of the event. This is a
bit of a hack. It would be better if EText could
tell us this. */
- gtk_object_get (GTK_OBJECT (span->text_item),
- "text", &text,
- NULL);
+ g_object_get (G_OBJECT (span->text_item), "text", &text, NULL);
text_width = 0;
if (text) {
/* It should only have one line of text in it.
@@ -2943,9 +2941,7 @@ e_week_view_start_editing_event (EWeekView *week_view,
e_canvas_item_grab_focus (span->text_item, TRUE);
/* Try to move the cursor to the end of the text. */
- gtk_object_get (GTK_OBJECT (span->text_item),
- "event_processor", &event_processor,
- NULL);
+ g_object_get (G_OBJECT (span->text_item), "event_processor", &event_processor, NULL);
if (event_processor) {
command.action = E_TEP_MOVE;
command.position = E_TEP_END_OF_BUFFER;
@@ -2992,9 +2988,7 @@ cancel_editing (EWeekView *week_view)
/* Reset the text to what was in the component */
cal_component_get_summary (event->comp, &summary);
- gtk_object_set (GTK_OBJECT (span->text_item),
- "text", summary.value ? summary.value : "",
- NULL);
+ g_object_set (G_OBJECT (span->text_item), "text", summary.value ? summary.value : "", NULL);
/* Stop editing */
e_week_view_stop_editing_event (week_view);
@@ -3218,9 +3212,7 @@ e_week_view_on_editing_stopped (EWeekView *week_view,
if (!uid)
return;
- gtk_object_get (GTK_OBJECT (span->text_item),
- "text", &text,
- NULL);
+ g_object_get (G_OBJECT (span->text_item), "text", &text, NULL);
g_assert (text != NULL);
if (string_is_empty (text) && !cal_comp_is_on_server (event->comp, week_view->client)) {