[Gpredict-svn] SF.net SVN: gpredict:[376] trunk/src/mod-mgr.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2009-08-06 13:55:03
|
Revision: 376 http://gpredict.svn.sourceforge.net/gpredict/?rev=376&view=rev Author: csete Date: 2009-08-06 13:54:55 +0000 (Thu, 06 Aug 2009) Log Message: ----------- Migrated to new user configuration. Modified Paths: -------------- trunk/src/mod-mgr.c Modified: trunk/src/mod-mgr.c =================================================================== --- trunk/src/mod-mgr.c 2009-08-06 13:49:20 UTC (rev 375) +++ trunk/src/mod-mgr.c 2009-08-06 13:54:55 UTC (rev 376) @@ -99,6 +99,7 @@ gint count,i; GtkWidget *module; gchar *modfile; + gchar *confdir; /* create notebook */ nbook = gtk_notebook_new (); @@ -118,11 +119,10 @@ for (i = 0; i < count; i++) { /* get data file name */ - modfile = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S, - ".gpredict2", G_DIR_SEPARATOR_S, - "modules", G_DIR_SEPARATOR_S, - mods[i], - ".mod", NULL); + confdir = get_modules_dir (); + modfile = g_strconcat (confdir, G_DIR_SEPARATOR_S, + mods[i], ".mod", NULL); + g_free (confdir); /* create module */ module = gtk_sat_module_new (modfile); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |