[Gpredict-svn] SF.net SVN: gpredict:[572] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2010-01-02 23:52:08
|
Revision: 572
http://gpredict.svn.sourceforge.net/gpredict/?rev=572&view=rev
Author: csete
Date: 2010-01-02 23:51:53 +0000 (Sat, 02 Jan 2010)
Log Message:
-----------
Updated.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-01-02 22:59:47 UTC (rev 571)
+++ trunk/ChangeLog 2010-01-02 23:51:53 UTC (rev 572)
@@ -1,3 +1,9 @@
+2010-01-02 Alexandru Csete <oz9aec at gmail.com>
+
+ * src/gtk-sat-selector.[ch]:
+ Added utility function to retrieve newest EPOCH of satellites in database.
+
+
2009-12-26 Alexandru Csete <oz9aec at gmail.com>
* src/sat-pref-layout.c:
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2010-01-02 22:59:47 UTC (rev 571)
+++ trunk/src/main.c 2010-01-02 23:51:53 UTC (rev 572)
@@ -51,6 +51,7 @@
#include "mod-mgr.h"
#include "tle-update.h"
#include "sat-cfg.h"
+#include "gtk-sat-selector.h"
#include "sat-debugger.h"
#ifdef WIN32
@@ -410,6 +411,7 @@
static gboolean
tle_mon_task (gpointer data)
{
+ GtkWidget *selector;
glong last,now,thrld;
GTimeVal tval;
GtkWidget *dialog;
@@ -422,7 +424,15 @@
/* get time of last update */
last = sat_cfg_get_int (SAT_CFG_INT_TLE_LAST_UPDATE);
+ /*if (last == 0) {
+ selector = gtk_sat_selector_new (0);
+ last = (glong) gtk_sat_selector_get_latest_epoch (GTK_SAT_SELECTOR (selector));
+ gtk_widget_destroy (selector);
+ }
+ g_print ("LAST: %ld\n", last); */
+
+
/* get current time */
g_get_current_time (&tval);
now = tval.tv_sec;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|