From 2603dde466c82ed60c41f9540a68f803d3510bf5 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Mon, 16 Jan 2012 01:48:40 +0100 Subject: Widget porting to GTK+ 3 with some added fixes for strict compiler checks --- hildon/hildon-time-selector.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'hildon/hildon-time-selector.c') diff --git a/hildon/hildon-time-selector.c b/hildon/hildon-time-selector.c index 6e1ce5e..e5bc003 100644 --- a/hildon/hildon-time-selector.c +++ b/hildon/hildon-time-selector.c @@ -144,14 +144,8 @@ static void hildon_time_selector_class_init (HildonTimeSelectorClass * class) { GObjectClass *gobject_class; - GtkObjectClass *object_class; - GtkWidgetClass *widget_class; - GtkContainerClass *container_class; gobject_class = (GObjectClass *) class; - object_class = (GtkObjectClass *) class; - widget_class = (GtkWidgetClass *) class; - container_class = (GtkContainerClass *) class; /* GObject */ gobject_class->get_property = hildon_time_selector_get_property; @@ -190,7 +184,7 @@ hildon_time_selector_class_init (HildonTimeSelectorClass * class) /* signals */ - g_type_class_add_private (object_class, sizeof (HildonTimeSelectorPrivate)); + g_type_class_add_private (class, sizeof (HildonTimeSelectorPrivate)); } /* FIXME: the constructor was required because as we need the initial values @@ -253,7 +247,7 @@ hildon_time_selector_init (HildonTimeSelector * selector) { selector->priv = HILDON_TIME_SELECTOR_GET_PRIVATE (selector); - GTK_WIDGET_SET_FLAGS (GTK_WIDGET (selector), GTK_NO_WINDOW); + gtk_widget_set_has_window (GTK_WIDGET (selector), FALSE); gtk_widget_set_redraw_on_allocate (GTK_WIDGET (selector), FALSE); hildon_touch_selector_set_print_func (HILDON_TOUCH_SELECTOR (selector), -- cgit v1.2.3-18-g5258