[Gpredict-svn] SF.net SVN: gpredict:[186] trunk/src/gtk-polar-view.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2008-12-28 14:39:25
|
Revision: 186
http://gpredict.svn.sourceforge.net/gpredict/?rev=186&view=rev
Author: csete
Date: 2008-12-28 14:39:16 +0000 (Sun, 28 Dec 2008)
Log Message:
-----------
Don't set canvas bounds when creating canvas because that will limit the visible area to the bound size, i.e. we cannot make the canvas larger.
Modified Paths:
--------------
trunk/src/gtk-polar-view.c
Modified: trunk/src/gtk-polar-view.c
===================================================================
--- trunk/src/gtk-polar-view.c 2008-12-28 14:32:06 UTC (rev 185)
+++ trunk/src/gtk-polar-view.c 2008-12-28 14:39:16 UTC (rev 186)
@@ -232,8 +232,11 @@
gtk_widget_modify_base (GTK_POLAR_VIEW (polv)->canvas, GTK_STATE_NORMAL, &bg_color);
gtk_widget_set_size_request (GTK_POLAR_VIEW (polv)->canvas,
POLV_DEFAULT_SIZE, POLV_DEFAULT_SIZE);
+ /* if we set canvas bounds resize will cut the image to this size
+ discovered with GooCanvas 0.12
goo_canvas_set_bounds (GOO_CANVAS (GTK_POLAR_VIEW (polv)->canvas), 0, 0,
POLV_DEFAULT_SIZE, POLV_DEFAULT_SIZE);
+ */
/* connect size-request signal */
g_signal_connect (GTK_POLAR_VIEW (polv)->canvas, "size-allocate",
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|