fixed time to change image, added icons to slideshow and flash, added change image...
[livewp] / applet / src / livewp-settings.c
index 0850aa7..db6006c 100644 (file)
@@ -329,7 +329,7 @@ fill_theme_button (Animation_WallpaperPrivate *priv, GtkWidget *button, gchar *c
                 hildon_button_set_value(HILDON_BUTTON(button), _("Video"));
             }
             if (!strcmp(theme, "Slideshow")){
-                hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, 4);
+                hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, 5);
                 hildon_button_set_value(HILDON_BUTTON(button), _("Slideshow"));
             }
        }
@@ -461,9 +461,10 @@ create_time_button (guint *active, gchar *name)
        hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (button),
                        HILDON_TOUCH_SELECTOR (selector));
        hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, num);
-       if (active)
-               hildon_button_set_value(HILDON_BUTTON(button), active);
-       else
+       if (active){
+        str = g_strdup_printf("%d", active);
+               hildon_button_set_value(HILDON_BUTTON(button), str);
+    }else
                hildon_button_set_value(HILDON_BUTTON(button), "");
        return button;
 }
@@ -816,7 +817,7 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) {
     GtkWidget *rich_animation_button = NULL;
     GtkWidget *confirm;
     gint view = priv->view;
-    gint count;
+    gint count, int_param;
     gchar *text;
 
     window = gtk_dialog_new();
@@ -927,9 +928,10 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) {
                        }
                        button2 = g_object_get_data(G_OBJECT(priv->window), "time_button");
                        if (button2){
-                               if (priv->theme_int_parametr1)
-                                       g_free(priv->theme_int_parametr1);
-                               priv->theme_int_parametr1 = (guint)hildon_button_get_value (HILDON_BUTTON(button2));
+                               //if (priv->theme_int_parametr1)
+                               //      g_free(priv->theme_int_parametr1);
+                        int_param = atoi(hildon_button_get_value (HILDON_BUTTON(button2)));
+                               priv->theme_int_parametr1 = int_param;
                        }
                 }
                 /* Check external themes */