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
This commit is contained in:
Federico Mena Quintero
1998-12-15 00:23:25 +00:00
committed by Arturo Espinosa
parent da6a42ae38
commit f26dcfdb85
7 changed files with 17 additions and 8 deletions

View File

@ -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.

View File

@ -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),

View File

@ -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),

View File

@ -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 *

View File

@ -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 */

View File

@ -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 *

View File

@ -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 */