Diff of /trunk/src/gconf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by harbaum, Sat Jun 20 11:08:47 2009 UTC revision 12 by harbaum, Fri Jun 26 20:07:33 2009 UTC
# Line 70  static store_t store[] = { Line 70  static store_t store[] = {
70    { "manual_goto_lon",  STORE_FLOAT,  OFFSET(manual_goto.lon) },    { "manual_goto_lon",  STORE_FLOAT,  OFFSET(manual_goto.lon) },
71    { "gps_lat",          STORE_FLOAT,  OFFSET(gps.lat) },    { "gps_lat",          STORE_FLOAT,  OFFSET(gps.lat) },
72    { "gps_lon",          STORE_FLOAT,  OFFSET(gps.lon) },    { "gps_lon",          STORE_FLOAT,  OFFSET(gps.lon) },
   { "load_images",      STORE_BOOL,   OFFSET(load_images) },  
73    { "search_in",        STORE_INT,    OFFSET(search) },    { "search_in",        STORE_INT,    OFFSET(search) },
74    { "search_days",      STORE_INT,    OFFSET(search_days) },    { "search_days",      STORE_INT,    OFFSET(search_days) },
75    { "search_str",       STORE_STRING, OFFSET(search_str) },    { "search_str",       STORE_STRING, OFFSET(search_str) },
# Line 314  void gconf_load_state(appdata_t *appdata Line 313  void gconf_load_state(appdata_t *appdata
313      appdata->search = SEARCH_NAME | SEARCH_ID;      appdata->search = SEARCH_NAME | SEARCH_ID;
314    
315    if(!appdata->image_path) {    if(!appdata->image_path) {
     /* if we get here, there's no config at all yet. So this is a */  
     /* good place to set all kinds of useful defaults */  
     appdata->load_images = TRUE;  
   
316    
317  #ifndef USE_MAEMO  #ifndef USE_MAEMO
318      char *p = getenv("HOME");      char *p = getenv("HOME");

Legend:
Removed from v.1  
changed lines
  Added in v.12