1 /* vim: set sw=4 ts=4 et: */
3 * This file is part of Live Wallpaper (livewp)
5 * Copyright (C) 2010 Vlad Vasiliev
6 * Copyright (C) 2010 Tanya Makova
9 * This software is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 2.1 of
12 * the License, or (at your option) any later version.
14 * This software is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this software; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 /*******************************************************************************/
25 #include "livewp-settings.h"
26 /*******************************************************************************/
29 main(int argc, char *argv[])
34 gtk_init(&argc, &argv);
36 window = create_settings();
38 //gtk_widget_show_all(window);
40 result = gtk_dialog_run(GTK_DIALOG(window));
43 case GTK_RESPONSE_YES:
45 if (hildon_button_get_value(HILDON_BUTTON (theme_button))){
48 if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Berlin")))
49 priv->theme = g_strdup("Berlin");
50 if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Modern")))
51 priv->theme = g_strdup("Modern");
52 if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Matrix")))
53 priv->theme = g_strdup("Matrix");
54 if (hildon_check_button_get_active (rich_animation_button))
55 priv->rich_animation = TRUE;
57 priv->rich_animation = FALSE;
60 reload_scene(priv->desktop_plugin);
62 //fprintf(stderr, "click save %s\n", hildon_button_get_value(HILDON_BUTTON(theme_button)));
63 fprintf(stderr, "click save \n");
69 fprintf(stderr, "click about\n");
70 gtk_widget_destroy(window);
76 // gtk_widget_destroy(window);