+/* vim: set sw=4 ts=4 et: */
+/*
+ * This file is part of Live Wallpaper (livewp)
+ *
+ * Copyright (C) 2010 Vlad Vasiliev
+ * Copyright (C) 2010 Tanya Makova
+ * 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
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+*/
+/*******************************************************************************/
+#include "livewp-settings.h"
+/*******************************************************************************/
+
+int
+main(int argc, char *argv[])
+{
+ GtkWidget *window;
+ gint result;
+
+ gtk_init(&argc, &argv);
+
+ window = create_settings();
+ if (window){
+ //gtk_widget_show_all(window);
+
+ result = gtk_dialog_run(GTK_DIALOG(window));
+
+ switch(result){
+ case GTK_RESPONSE_YES:
+ #if 0
+ if (hildon_button_get_value(HILDON_BUTTON (theme_button))){
+ if (priv->theme)
+ g_free(priv->theme);
+ if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Berlin")))
+ priv->theme = g_strdup("Berlin");
+ if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Modern")))
+ priv->theme = g_strdup("Modern");
+ if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Matrix")))
+ priv->theme = g_strdup("Matrix");
+ if (hildon_check_button_get_active (rich_animation_button))
+ priv->rich_animation = TRUE;
+ else
+ priv->rich_animation = FALSE;
+ }
+ save_config(priv);
+ reload_scene(priv->desktop_plugin);
+ #endif
+ //fprintf(stderr, "click save %s\n", hildon_button_get_value(HILDON_BUTTON(theme_button)));
+ fprintf(stderr, "click save \n");
+ break;
+ default:
+ case GTK_RESPONSE_OK:
+ break;
+ case GTK_RESPONSE_NO:
+ fprintf(stderr, "click about\n");
+ gtk_widget_destroy(window);
+ window = NULL;
+ //lw_about();
+ break;
+ }
+ //if (window)
+ // gtk_widget_destroy(window);
+ //}
+ }
+ gtk_main();
+ return 0;
+}