From 5da98df8381866f0b24abe8f32cee251bbbbaea6 Mon Sep 17 00:00:00 2001 From: tanya Date: Fri, 23 Apr 2010 17:05:12 +0300 Subject: [PATCH] added some debug info --- applet/src/livewp-home-widget.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/applet/src/livewp-home-widget.c b/applet/src/livewp-home-widget.c index aef53b2..935bdb4 100644 --- a/applet/src/livewp-home-widget.c +++ b/applet/src/livewp-home-widget.c @@ -521,7 +521,7 @@ change_wind(Actor *actor, AWallpaperPlugin *desktop_plugin) if (scene.wind_orientation == 0) scene.wind_orientation = -1; scene.wind_angle = (double)(fast_rnd(200) - 100) / 100; actor->time_start_animation = time(NULL) + (fast_rnd(10) + 10) * 60; - //fprintf(stderr, "change wind orient = %d angle = %f after = %d\n", scene.wind_orientation, scene.wind_angle, actor->time_start_animation-time(NULL)); + fprintf(stderr, "change wind orient = %d angle = %f after = %d\n", scene.wind_orientation, scene.wind_angle, actor->time_start_animation-time(NULL)); } void @@ -585,6 +585,7 @@ create_hildon_actor(Actor *actor, AWallpaperPlugin *desktop_plugin) actor->width, actor->height, NULL); + fprintf(stderr, "33333 create actor=%s filename=%s\n", actor->name, str); if (str) g_free(str); if (pixbuf){ @@ -634,7 +635,7 @@ change_hildon_actor(Actor *actor, AWallpaperPlugin *desktop_plugin) str = g_strdup_printf( "%s/%s/%s", THEME_PATH, desktop_plugin->priv->theme, actor->filename); - fprintf(stderr, "55555 actor=%s filename=%s\n", actor->name, str); + fprintf(stderr, "44444 change actor=%s filename=%s\n", actor->name, str); pixbuf = gdk_pixbuf_new_from_file_at_size (str, actor->width, actor->height, @@ -1374,6 +1375,7 @@ run_long_timeout(AWallpaperPlugin *desktop_plugin) pfunc =((Actor*)tmp->data)->func_change; if (pfunc){ (*pfunc)(tmp->data, desktop_plugin); + fprintf(stderr, "7777 change %s\n", actor->name); } tmp = g_slist_next(tmp); } @@ -1391,10 +1393,11 @@ run_long_timeout(AWallpaperPlugin *desktop_plugin) if (desktop_plugin->priv->rich_animation){ actor->time_start_animation = now; desktop_plugin->priv->short_timer = g_timeout_add(SHORT_TIMER, (GtkFunction)short_timeout, desktop_plugin); - //fprintf(stderr, " start shor timer %d\n", desktop_plugin->priv->short_timer); + fprintf(stderr, "55555 start animation for %s\n", actor->name); } else { (*actor->func_change)(actor, desktop_plugin); + fprintf(stderr, "66666 change %s\n", actor->name); } } tmp = g_slist_next(tmp); @@ -1466,6 +1469,7 @@ animation_wallpaper_plugin_init (AWallpaperPlugin *desktop_plugin) priv->desktop_plugin = desktop_plugin; priv->visible = TRUE; priv->short_timer = 0; + priv->theme = g_strdup("Berlin"); desktop_plugin->priv->main_widget = gtk_fixed_new(); gtk_widget_set_size_request(desktop_plugin->priv->main_widget, 100, 32); -- 1.7.9.5