[Gpredict-svn] SF.net SVN: gpredict:[187] trunk/src/gtk-sat-map.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2008-12-28 14:46:44
|
Revision: 187
http://gpredict.svn.sourceforge.net/gpredict/?rev=187&view=rev
Author: csete
Date: 2008-12-28 14:46:41 +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-sat-map.c
Modified: trunk/src/gtk-sat-map.c
===================================================================
--- trunk/src/gtk-sat-map.c 2008-12-28 14:39:16 UTC (rev 186)
+++ trunk/src/gtk-sat-map.c 2008-12-28 14:46:41 UTC (rev 187)
@@ -267,7 +267,8 @@
goo_canvas_set_bounds (GOO_CANVAS (GTK_SAT_MAP (satmap)->canvas), 0, 0,
gdk_pixbuf_get_width (GTK_SAT_MAP (satmap)->origmap),
gdk_pixbuf_get_height (GTK_SAT_MAP (satmap)->origmap));
-
+
+
/* connect size-request signal */
g_signal_connect (GTK_SAT_MAP (satmap)->canvas, "size-allocate",
G_CALLBACK (size_allocate_cb), satmap);
@@ -512,6 +513,11 @@
GDK_INTERP_BILINEAR);
}
+ /* set canvas bounds to match new size */
+ goo_canvas_set_bounds (GOO_CANVAS (GTK_SAT_MAP (satmap)->canvas), 0, 0,
+ satmap->width, satmap->height);
+
+
/* redraw static elements */
g_object_set (satmap->map,
"pixbuf", pbuf,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|