diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-12-15 08:23:25 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-12-15 08:23:25 +0800 |
commit | f26dcfdb85e35b4630610e57d3e0174281a3975c (patch) | |
tree | 496da1f315c7608ace0ae3b118f9073214a40d96 /calendar | |
parent | da6a42ae382c1fca01cd420fe9ed313f2d4265b1 (diff) | |
download | gsoc2013-evolution-f26dcfdb85e35b4630610e57d3e0174281a3975c.tar gsoc2013-evolution-f26dcfdb85e35b4630610e57d3e0174281a3975c.tar.gz gsoc2013-evolution-f26dcfdb85e35b4630610e57d3e0174281a3975c.tar.bz2 gsoc2013-evolution-f26dcfdb85e35b4630610e57d3e0174281a3975c.tar.lz gsoc2013-evolution-f26dcfdb85e35b4630610e57d3e0174281a3975c.tar.xz gsoc2013-evolution-f26dcfdb85e35b4630610e57d3e0174281a3975c.tar.zst gsoc2013-evolution-f26dcfdb85e35b4630610e57d3e0174281a3975c.zip |
Use the allocation size instead of the old fields in the canvas structure.
1998-12-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* year-view.c (idle_handler): Use the allocation size instead of
the old fields in the canvas structure.
svn path=/trunk/; revision=523
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 9 | ||||
-rw-r--r-- | calendar/goto.c | 2 | ||||
-rw-r--r-- | calendar/gui/goto.c | 2 | ||||
-rw-r--r-- | calendar/gui/quick-view.c | 2 | ||||
-rw-r--r-- | calendar/gui/year-view.c | 4 | ||||
-rw-r--r-- | calendar/quick-view.c | 2 | ||||
-rw-r--r-- | calendar/year-view.c | 4 |
7 files changed, 17 insertions, 8 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d5bceb8711..b7a83c1b83 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,12 @@ +1998-12-14 Federico Mena Quintero <federico@nuclecu.unam.mx> + + * year-view.c (idle_handler): Use the allocation size instead of + the old fields in the canvas structure. + + * goto.c (create_days): Use gtk_widget_set_usize() instead of + gnome_canvas_set_size(). + * quick-view.c (setup_event_list): Likewise. + 1998-12-09 Miguel de Icaza <miguel@nuclecu.unam.mx> * gncal-todo.c (simple_todo_editor): Use gnome_dialog_set_parent. diff --git a/calendar/goto.c b/calendar/goto.c index 0e065f63c3..0dd0a3f22e 100644 --- a/calendar/goto.c +++ b/calendar/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/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 */ diff --git a/calendar/quick-view.c b/calendar/quick-view.c index f1f3a16364..364ea8f691 100644 --- a/calendar/quick-view.c +++ b/calendar/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/year-view.c b/calendar/year-view.c index 31d0d5c9e2..786270bea3 100644 --- a/calendar/year-view.c +++ b/calendar/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 */ |