* for the code
*
* This software is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1 of
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful, but
about_string = g_strdup_printf(_("Live Wallpaper Version %s \n Copyright(c) 2010\n \
Tanya Makova\n Vlad Vasiliev\n \
Copyright(c) 2010 for design themes Berlin, Modern and Accel Vasya Bobrikov\n \
-Copyright(c) 2010 for design theme Matrix and icons Andrew Zhilin\n \
+Copyright(c) 2010 for design themes Matrix Fifteen and for icons Andrew Zhilin\n \
Translators:\n \
Finnish - Marko Vertainen\n \
Spain - Alejandro López\n \
GList *category_list;
GHashTable *result_table = NULL;
+ selector = hildon_touch_selector_new_text();
+
+ hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (selector), "LiveWallpaper" );
+
result_table = g_hash_table_new(g_str_hash, g_str_equal);
while (store){
- if (!g_hash_table_lookup(result_table, g_hash_table_lookup(store->data, "category")))
+ if (!g_hash_table_lookup(result_table, g_hash_table_lookup(store->data, "category"))){
g_hash_table_insert(result_table, g_hash_table_lookup(store->data, "category"), (gint *)1);
+ hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (selector), g_hash_table_lookup(store->data, "category"));
+ }
store = g_slist_next(store);
}
/* Add Xscreensaver for install message */
- if (!g_hash_table_lookup(result_table,"Xscreensaver"))
+ if (!g_hash_table_lookup(result_table,"Xscreensaver")){
g_hash_table_insert(result_table, "Xscreensaver", (gint *)1);
-
+ hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (selector), "Xscreensaver");
+ }
+#if 0
category_list = g_hash_table_get_keys (result_table);
selector = hildon_touch_selector_new_text();
hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (selector), "LiveWallpaper" );
while (category_list){
hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (selector),category_list->data );
+ fprintf(stderr, "create %s\n", category_list->data);
category_list = g_list_next(category_list);
}
-
+#endif
return selector;
}
num++;
}
if (!strcmp(theme, g_hash_table_lookup(store->data, "name"))){
- if (g_hash_table_lookup(store->data, "category"))
+ if (g_hash_table_lookup(store->data, "category")){
hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0,
(gint)g_hash_table_lookup(result_table, g_hash_table_lookup(store->data, "category")));
hildon_button_set_value(HILDON_BUTTON(button), g_hash_table_lookup(store->data, "category"));
+ }
break;
}