112 |
if(value) |
if(value) |
113 |
gconf_value_free(value); |
gconf_value_free(value); |
114 |
else { |
else { |
115 |
|
#if 0 // don't explain this now ... |
116 |
messagef(NULL, _("Icon drawing is disabled"), |
messagef(NULL, _("Icon drawing is disabled"), |
117 |
_("You are running this version of osm2go on a Internet " |
_("You are running this version of osm2go on a Internet " |
118 |
"Tablet for the first time. Since these currently have " |
"Tablet for the first time. Since these currently have " |
121 |
"Map/No Icons at any time.")); |
"Map/No Icons at any time.")); |
122 |
|
|
123 |
settings->no_icons = TRUE; |
settings->no_icons = TRUE; |
124 |
|
#endif |
125 |
} |
} |
126 |
} |
} |
127 |
#endif |
#endif |
231 |
} |
} |
232 |
} |
} |
233 |
|
|
234 |
#if 1 // def USE_HILDON |
/* use demo setup if present */ |
235 |
/* demo setup for maemo/hildon */ |
if(!settings->project) { |
|
{ |
|
236 |
char *key = g_strdup_printf("/apps/" PACKAGE "/base_path"); |
char *key = g_strdup_printf("/apps/" PACKAGE "/base_path"); |
237 |
GConfValue *value = gconf_client_get(client, key, NULL); |
GConfValue *value = gconf_client_get(client, key, NULL); |
238 |
if(value) |
if(value) |
241 |
printf("base_path not set, assuming first time boot\n"); |
printf("base_path not set, assuming first time boot\n"); |
242 |
|
|
243 |
/* check for presence of demo project */ |
/* check for presence of demo project */ |
244 |
|
if(project_exists(settings, "demo")) { |
245 |
|
printf("demo project exists, use it as default\n"); |
246 |
|
settings->project = g_strdup("demo"); |
247 |
|
settings->first_run_demo = TRUE; |
248 |
|
} |
249 |
} |
} |
250 |
} |
} |
|
#endif |
|
|
|
|
251 |
} |
} |
252 |
|
|
253 |
|
|