- if (enable)
- str = g_strdup_printf( "%s/%s/%s", THEME_PATH,
- theme, "icon.png");
- else
- str = g_strdup_printf( "%s/%s/%s", THEME_PATH,
- theme, "icond.png");
+ gchar *icon_on = NULL;
+ gchar *icon_off = NULL;
+ GSList *store = priv->extheme_list;
+ while (store){
+ if (!strcmp(priv->theme, g_hash_table_lookup(store->data, "name"))){
+ icon_on = g_strdup(g_hash_table_lookup(store->data, "icon_on"));
+ icon_off = g_strdup(g_hash_table_lookup(store->data, "icon_off"));
+ break;
+ }
+ store = g_list_next(store);
+ }
+ if (enable){
+ if (icon_on)
+ str = g_strdup_printf("%s", icon_on);
+ else
+ str = g_strdup_printf( "%s/%s/%s", THEME_PATH,
+ priv->theme, "icon.png");
+ }else {
+ if (icon_off)
+ str = g_strdup_printf("%s", icon_off);
+ else
+ str = g_strdup_printf( "%s/%s/%s", THEME_PATH,
+ priv->theme, "icond.png");
+ }
+ fprintf(stderr, "icon = %s\n", str);