From 9b2576119477a2a4bcfed3d1c5f2c038403941be Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 8 Oct 2010 03:58:06 +0200 Subject: Cast GtkAdjustment constructor calls to GtkAdjustment Otherwise gcc will complain about wrong type when comiling against GTK2. This patch can be reverted when compiling against GTK3. --- calendar/gui/e-week-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index bb6784d053..dd72bfe530 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -834,7 +834,7 @@ e_week_view_init (EWeekView *week_view) /* * Scrollbar. */ - adjustment = gtk_adjustment_new (0, -52, 52, 1, 1, 1); + adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (0, -52, 52, 1, 1, 1)); week_view->vscrollbar = gtk_vscrollbar_new (adjustment); gtk_table_attach (GTK_TABLE (week_view), week_view->vscrollbar, -- cgit