[Gpredict-svn] SF.net SVN: gpredict:[443] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2009-09-27 15:37:01
|
Revision: 443
http://gpredict.svn.sourceforge.net/gpredict/?rev=443&view=rev
Author: csete
Date: 2009-09-27 15:36:54 +0000 (Sun, 27 Sep 2009)
Log Message:
-----------
Fixed bug 2691499: Sky at glance crashes with empty module.
Modified Paths:
--------------
trunk/ChangeLog
trunk/NEWS
trunk/src/gtk-sky-glance.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-09-27 14:15:02 UTC (rev 442)
+++ trunk/ChangeLog 2009-09-27 15:36:54 UTC (rev 443)
@@ -3,7 +3,10 @@
* src/tle-update.c:
Synchronise satellite categories during TLE update.
+ * src/gtk-sky-at-glance.c:
+ Fixed bug 2691499: Sky at glance crashes with empty module.
+
2009-09-25 Alexandru Csete <oz9aec at gmail.com>
* src/gtk-sat-module-tmg.c:
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2009-09-27 14:15:02 UTC (rev 442)
+++ trunk/NEWS 2009-09-27 15:36:54 UTC (rev 443)
@@ -11,6 +11,7 @@
- Added a slider control to the Time Controller.
- Fixed bug 2116693: List view does not sort properly for all time formats.
- Fixed bug 2836265: Time controls should wrap around their limits.
+- Fixed bug 2691499: Sky at glance crashes with empty module.
* Binary packages for Windows, Mac OS X, Ubuntu and generic Linux.
Modified: trunk/src/gtk-sky-glance.c
===================================================================
--- trunk/src/gtk-sky-glance.c 2009-09-27 14:15:02 UTC (rev 442)
+++ trunk/src/gtk-sky-glance.c 2009-09-27 15:36:54 UTC (rev 443)
@@ -228,7 +228,18 @@
GtkWidget *skg;
GooCanvasItemModel *root;
GdkColor bg_color = {0, 0xFFFF, 0xFFFF, 0xFFFF};
+ guint number;
+
+ /* check that we have at least one satellite */
+ number = g_hash_table_size (sats);
+ if (number == 0) {
+ /* no satellites */
+ skg = gtk_label_new (_("This module has no satellites!"));
+
+ return skg;
+ }
+
skg = g_object_new (GTK_TYPE_SKY_GLANCE, NULL);
/* FIXME? */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|