From f26dcfdb85e35b4630610e57d3e0174281a3975c Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 15 Dec 1998 00:23:25 +0000 Subject: Use the allocation size instead of the old fields in the canvas structure. 1998-12-14 Federico Mena Quintero * year-view.c (idle_handler): Use the allocation size instead of the old fields in the canvas structure. svn path=/trunk/; revision=523 --- calendar/gui/goto.c | 2 +- calendar/gui/quick-view.c | 2 +- calendar/gui/year-view.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/goto.c b/calendar/gui/goto.c index 0e065f63c3..0dd0a3f22e 100644 --- a/calendar/gui/goto.c +++ b/calendar/gui/goto.c @@ -207,7 +207,7 @@ create_days (int day, int month, int year) GnomeCanvasItem *day_group; canvas = gnome_canvas_new (); - gnome_canvas_set_size (GNOME_CANVAS (canvas), 150, 120); + gtk_widget_set_usize (canvas, 150, 120); month_item = GNOME_MONTH_ITEM (gnome_month_item_new (gnome_canvas_root (GNOME_CANVAS (canvas)))); gnome_canvas_item_set (GNOME_CANVAS_ITEM (month_item), diff --git a/calendar/gui/quick-view.c b/calendar/gui/quick-view.c index f1f3a16364..364ea8f691 100644 --- a/calendar/gui/quick-view.c +++ b/calendar/gui/quick-view.c @@ -175,7 +175,7 @@ setup_event_list (QuickView *qv, GList *event_list) 0.0, 0.0, max_width, y); - gnome_canvas_set_size (GNOME_CANVAS (qv->canvas), max_width, y); + gtk_widget_set_usize (qv->canvas, max_width, y); } GtkWidget * diff --git a/calendar/gui/year-view.c b/calendar/gui/year-view.c index 31d0d5c9e2..786270bea3 100644 --- a/calendar/gui/year-view.c +++ b/calendar/gui/year-view.c @@ -106,8 +106,8 @@ idle_handler (gpointer data) /* Space for the titles and months */ - width = yv->canvas.width; - height = yv->canvas.height - head_height; + width = GTK_WIDGET (yv)->allocation.width; + height = GTK_WIDGET (yv)->allocation.height - head_height; /* Offsets */ -- cgit v1.2.3