[Gpredict-svn] SF.net SVN: gpredict:[390] trunk/src/gtk-sat-data.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2009-08-06 23:23:52
|
Revision: 390 http://gpredict.svn.sourceforge.net/gpredict/?rev=390&view=rev Author: csete Date: 2009-08-06 23:23:46 +0000 (Thu, 06 Aug 2009) Log Message: ----------- Updated. Modified Paths: -------------- trunk/src/gtk-sat-data.c Modified: trunk/src/gtk-sat-data.c =================================================================== --- trunk/src/gtk-sat-data.c 2009-08-06 23:22:16 UTC (rev 389) +++ trunk/src/gtk-sat-data.c 2009-08-06 23:23:46 UTC (rev 390) @@ -79,7 +79,7 @@ } else { /* read name, nickname, and website */ - sat->name = g_key_file_get_string (data, NULL, "NAME", &error); + sat->name = g_key_file_get_string (data, "Satellite", "NAME", &error); if (error != NULL) { sat_log_log (SAT_LOG_LEVEL_ERROR, _("%s: Error reading NAME from %s (%s)"), @@ -87,7 +87,7 @@ g_clear_error (&error); sat->name = g_strdup ("Error"); } - sat->nickname = g_key_file_get_string (data, NULL, "NICKNAME", &error); + sat->nickname = g_key_file_get_string (data, "Satellite", "NICKNAME", &error); if (error != NULL) { sat_log_log (SAT_LOG_LEVEL_MSG, _("%s: Satellite %d has no NICKNAME"), @@ -95,11 +95,11 @@ g_clear_error (&error); sat->nickname = g_strdup (sat->name); } - sat->website = g_key_file_get_string (data, NULL, "WEBSITE", NULL); /* website may be NULL */ + sat->website = g_key_file_get_string (data, "Satellite", "WEBSITE", NULL); /* website may be NULL */ /* get TLE data */ - tlestr1 = g_key_file_get_string (data, NULL, "TLE1", NULL); - tlestr2 = g_key_file_get_string (data, NULL, "TLE2", NULL); + tlestr1 = g_key_file_get_string (data, "Satellite", "TLE1", NULL); + tlestr2 = g_key_file_get_string (data, "Satellite", "TLE2", NULL); rawtle = g_strconcat (tlestr1, tlestr2, NULL); if (!Good_Elements (rawtle)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |