debbuging slideshow
authortanya <tanya@moshkanov.oblgaz>
Fri, 1 Oct 2010 19:19:37 +0000 (22:19 +0300)
committertanya <tanya@moshkanov.oblgaz>
Fri, 1 Oct 2010 19:19:37 +0000 (22:19 +0300)
applet/src/livewp-scene.c
applet/src/livewp-settings.c

index 7d51500..c1184c0 100644 (file)
@@ -395,7 +395,7 @@ init_scene_Slideshow(AWallpaperPlugin *desktop_plugin)
        GSList *store = NULL;
        gint num = 0;
 
-       fprintf(stderr, "init scene Slideshow %d\n", desktop_plugin->priv->theme_int_parametr1);
+       fprintf(stderr, "init scene Slideshow %d %s\n", desktop_plugin->priv->theme_int_parametr1, desktop_plugin->priv->theme_string_parametr1);
 
        scene = g_new0(Scene, 1);
        scene->actors = NULL;
index 0850aa7..e925856 100644 (file)
@@ -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();
@@ -929,7 +930,9 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) {
                        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));
+                        int_param = atoi(hildon_button_get_value (HILDON_BUTTON(button2)));
+                               priv->theme_int_parametr1 = int_param;
+                        fprintf(stderr, "qqqq %i %s\n", priv->theme_int_parametr1, priv->theme_string_parametr1);
                        }
                 }
                 /* Check external themes */