projects
/
livewp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
76c8b8b
)
added some debug info
author
tanya
<tanya@tanin.oblgaz>
Fri, 23 Apr 2010 14:05:12 +0000
(17:05 +0300)
committer
tanya
<tanya@tanin.oblgaz>
Fri, 23 Apr 2010 14:05:12 +0000
(17:05 +0300)
applet/src/livewp-home-widget.c
patch
|
blob
|
history
diff --git
a/applet/src/livewp-home-widget.c
b/applet/src/livewp-home-widget.c
index
aef53b2
..
935bdb4
100644
(file)
--- 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;
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
}
void
@@
-585,6
+585,7
@@
create_hildon_actor(Actor *actor, AWallpaperPlugin *desktop_plugin)
actor->width,
actor->height,
NULL);
actor->width,
actor->height,
NULL);
+ fprintf(stderr, "33333 create actor=%s filename=%s\n", actor->name, str);
if (str)
g_free(str);
if (pixbuf){
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);
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,
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);
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);
}
}
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);
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);
}
else {
(*actor->func_change)(actor, desktop_plugin);
+ fprintf(stderr, "66666 change %s\n", actor->name);
}
}
tmp = g_slist_next(tmp);
}
}
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->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);
desktop_plugin->priv->main_widget = gtk_fixed_new();
gtk_widget_set_size_request(desktop_plugin->priv->main_widget, 100, 32);