mirror of
https://github.com/csete/gpredict
synced 2026-08-13 17:39:46 -04:00
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:
parent
0b8f103450
commit
a4a6bbcd90
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue