aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/gui/control-factory.c2
-rw-r--r--calendar/gui/e-day-view-time-item.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/calendar/gui/control-factory.c b/calendar/gui/control-factory.c
index e5eeeefdac..951c4c6f4d 100644
--- a/calendar/gui/control-factory.c
+++ b/calendar/gui/control-factory.c
@@ -257,7 +257,7 @@ control_factory_new_control (void)
g_message ("control_factory_fn(): could not create the control!");
return NULL;
}
- gtk_object_set_data (GTK_OBJECT (gcal), "control", control);
+ g_object_set_data (G_OBJECT (gcal), "control", control);
calendar_properties_init (gcal, control);
#if 0
diff --git a/calendar/gui/e-day-view-time-item.c b/calendar/gui/e-day-view-time-item.c
index 8d2f943f7e..10a1e00dc8 100644
--- a/calendar/gui/e-day-view-time-item.c
+++ b/calendar/gui/e-day-view-time-item.c
@@ -526,8 +526,8 @@ e_day_view_time_item_show_popup_menu (EDayViewTimeItem *dvtmitem,
if (current_divisions == divisions[i])
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), TRUE);
- gtk_object_set_data (GTK_OBJECT (item), "divisions",
- GINT_TO_POINTER (divisions[i]));
+ g_object_set_data (G_OBJECT (item), "divisions",
+ GINT_TO_POINTER (divisions[i]));
g_signal_connect (item, "toggled",
G_CALLBACK (e_day_view_time_item_on_set_divisions), dvtmitem);
@@ -551,8 +551,7 @@ e_day_view_time_item_on_set_divisions (GtkWidget *item,
if (!gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (item)))
return;
- divisions = GPOINTER_TO_INT (gtk_object_get_data (GTK_OBJECT (item),
- "divisions"));
+ divisions = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (item), "divisions"));
e_day_view_set_mins_per_row (day_view, divisions);
calendar_config_set_time_divisions (divisions);
}