From: tanya Date: Fri, 1 Oct 2010 19:19:37 +0000 (+0300) Subject: debbuging slideshow X-Git-Url: http://vcs.maemo.org/git/?p=livewp;a=commitdiff_plain;h=49826faf011a3bbf97e87d0dfd8efdec0c0b170f debbuging slideshow --- diff --git a/applet/src/livewp-scene.c b/applet/src/livewp-scene.c index 7d51500..c1184c0 100644 --- a/applet/src/livewp-scene.c +++ b/applet/src/livewp-scene.c @@ -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; diff --git a/applet/src/livewp-settings.c b/applet/src/livewp-settings.c index 0850aa7..e925856 100644 --- a/applet/src/livewp-settings.c +++ b/applet/src/livewp-settings.c @@ -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 */