Update canvas bounds when resizing the canvas.

git-svn-id: https://gpredict.svn.sourceforge.net/svnroot/gpredict/trunk@190 ab6734ba-2843-0410-b83b-99c217ef6c0f
This commit is contained in:
csete 2008-12-28 16:01:24 +00:00
parent 0b8f103450
commit a4a6bbcd90

View file

@ -781,6 +781,10 @@ size_allocate_cb (GtkWidget *widget, GtkAllocation *allocation, gpointer data)
polv->cx = allocation->width / 2;
polv->cy = allocation->height / 2;
goo_canvas_set_bounds (GOO_CANVAS (GTK_POLAR_PLOT (polv)->canvas), 0, 0,
allocation->width, allocation->height);
/* update coordinate system */
g_object_set (polv->C00,
"center-x", (gdouble) polv->cx,