begun rich animation's config
authorVlad Vasiliev <vlad@toshiba2.oblgaz>
Mon, 12 Apr 2010 05:27:35 +0000 (08:27 +0300)
committerVlad Vasiliev <vlad@toshiba2.oblgaz>
Mon, 12 Apr 2010 05:27:35 +0000 (08:27 +0300)
applet/src/livewp-common.h
applet/src/livewp-config.c
applet/src/livewp-config.h
applet/src/livewp-settings.c

index 2bb0b27..fbdf532 100644 (file)
@@ -51,6 +51,7 @@ struct _Animation_WallpaperPrivate
     gint short_timer;
     gchar *theme;
     gboolean visible;
+    gboolean rich_animation;
     AWallpaperPlugin *desktop_plugin;
 };
 
index a529834..b91b1ce 100644 (file)
@@ -29,6 +29,7 @@ read_config(Animation_WallpaperPrivate *priv) {
 
     GConfClient *gconf_client = NULL;
     gchar *tmp = NULL;
+    GConfValue *value = NULL;
 
     gconf_client = gconf_client_get_default();
     if (!gconf_client) {
@@ -42,6 +43,13 @@ read_config(Animation_WallpaperPrivate *priv) {
         priv->theme = tmp;
     }else
         priv->theme = g_strdup("Modern");
+    /* get Rich animation default TRUE */
+    value = gconf_client_get(gconf_client, GCONF_KEY_RANIMATION, NULL);
+    if (value) {
+        priv->rich_animation = gconf_value_get_bool(value);
+        gconf_value_free(value);
+    } else
+        priv->rich_animation = TRUE;
 
     return 0;
 }
index f6dc5f3..d4163a4 100644 (file)
@@ -27,6 +27,7 @@
 
 #define GCONF_KEY_PREFIX                            "/apps/maemo/livewp"
 #define GCONF_KEY_THEME                             GCONF_KEY_PREFIX"/theme"
+#define GCONF_KEY_RANIMATION                        GCONF_KEY_PREFIX"/rich_animation"
 gint read_config(Animation_WallpaperPrivate *priv); 
 void save_config(Animation_WallpaperPrivate *priv); 
 
index d44ed97..00b3691 100644 (file)
@@ -99,6 +99,7 @@ lw_settings(GtkWidget *widget, Animation_WallpaperPrivate *priv){
     theme_button = create_themes_button(priv->theme);
     gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox),
                                    theme_button, TRUE, TRUE, 0);
+    /* Create risch animation button */
     gtk_widget_show (theme_button);
     gtk_widget_show (window);
     gtk_dialog_add_button(GTK_DIALOG(window), _("About"), GTK_RESPONSE_NO);