Diff of /trunk/src/icons.c

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

revision 205 by harbaum, Mon Nov 23 20:12:22 2009 UTC revision 215 by harbaum, Thu Nov 26 10:30:50 2009 UTC
# Line 24  struct icon_data { Line 24  struct icon_data {
24    GdkPixbuf **data;    GdkPixbuf **data;
25    int count;    int count;
26  } icons[] = {  } icons[] = {
27    { NULL, CACHE_TYPE_MAX+5 },  /* ICON_CACHE_TYPE      */    { NULL, CACHE_TYPE_MAX+5 },             /* ICON_CACHE_TYPE      */
28    { NULL, CACHE_TYPE_MAX+5 },  /* ICON_CACHE_TYPE_SEMI */    { NULL, CACHE_TYPE_MAX+5 },             /* ICON_CACHE_TYPE_SEMI */
29    { NULL, CACHE_TYPE_MAX+5 },  /* ICON_CACHE_TYPE_1_5X */    { NULL, CACHE_TYPE_MAX+5 },             /* ICON_CACHE_TYPE_1_5X */
30    { NULL, CACHE_TYPE_MAX+5 },  /* ICON_CACHE_TYPE_2X   */    { NULL, CACHE_TYPE_MAX+5 },             /* ICON_CACHE_TYPE_2X   */
31    { NULL, CACHE_CONT_MAX+1 },  /* ICON_CACHE_SIZE      */    { NULL, CACHE_CONT_MAX+1 },             /* ICON_CACHE_SIZE      */
32    { NULL, 9 },                 /* ICON_STARS           */    { NULL, 9 },                            /* ICON_STARS           */
33    { NULL, LOG_TYPE_MAX+1 },    /* ICON_LOG             */    { NULL, LOG_TYPE_MAX+1 },               /* ICON_LOG             */
34    { NULL, 9 },                 /* ICON_HEADING         */    { NULL, 9 },                            /* ICON_HEADING         */
35    { NULL, WPT_SYM_MAX+1 },     /* ICON_WPT             */    { NULL, WPT_SYM_MAX+1 },                /* ICON_WPT             */
36    { NULL, 2 },                 /* ICON_TB              */    { NULL, 2 },                            /* ICON_TB              */
37    { NULL, 6 },                 /* ICON_MISC            */    { NULL, 6 },                            /* ICON_MISC            */
38    { NULL, 3 },                 /* ICON_FILE            */    { NULL, WPT_SYM_MAX+CACHE_TYPE_MAX+6 }, /* ICON_POS             */
39      { NULL, 3 },                            /* ICON_FILE            */
40    { NULL, -1 }    { NULL, -1 }
41  };  };
42    
# Line 91  const char *tb_icon_name[] = { Line 92  const char *tb_icon_name[] = {
92  /* ICON_MISC         */  /* ICON_MISC         */
93  const char *misc_icon_name[] = {  const char *misc_icon_name[] = {
94    "maemo-mapper-out", "locked", "unlocked",    "maemo-mapper-out", "locked", "unlocked",
95    "maemo-mapper-in", "delete", "paypal", NULL    "maemo-mapper-in", "delete", "paypal",
96      NULL
97    };
98    
99    /* ICON_POS        */
100    const char *pos_icon_name[] = {
101      "wpt_multistage",         "wpt_parking",           "wpt_final",
102      "wpt_question",           "wpt_trailhead",         "wpt_refpoint",
103    
104      "cache_type_traditional", "cache_type_multi",      "cache_type_mystery",
105      "cache_type_virtual",     "cache_type_webcam",     "cache_type_event",
106      "cache_type_letterbox",   "cache_type_earthcache", "cache_type_wherigo",
107      "cache_type_megaevent",   "cache_type_cito",
108    
109      "pos_btn", "pos_gps", "pos_geomath", "pos_map",
110      NULL
111  };  };
112    
113  /* ICON_FILE         */  /* ICON_FILE         */
# Line 136  static void icons_load(int type, char *f Line 152  static void icons_load(int type, char *f
152        }        }
153      }      }
154    }    }
155    
156    g_assert(!names[i]);    g_assert(!names[i]);
157  }  }
158    
# Line 187  void icons_init(void) { Line 203  void icons_init(void) {
203    /* load misc icons */    /* load misc icons */
204    icons_load(ICON_MISC, "%s.%s", misc_icon_name);    icons_load(ICON_MISC, "%s.%s", misc_icon_name);
205    
206      /* load pos icons */
207    #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
208      icons_load(ICON_POS, "16x16/%s.%s", pos_icon_name);
209    #else
210      icons_load(ICON_POS, "32x32/%s.%s", pos_icon_name);
211    #endif
212    
213    /* load file icons */    /* load file icons */
214    icons_load(ICON_FILE, "file_%s.%s", file_icon_name);    icons_load(ICON_FILE, "file_%s.%s", file_icon_name);
215  }  }

Legend:
Removed from v.205  
changed lines
  Added in v.215