projects
/
livewp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5fbe381
)
rewrote view function
author
vlad
<vlad@vlanout.(none)>
Tue, 31 Aug 2010 18:59:17 +0000
(21:59 +0300)
committer
vlad
<vlad@vlanout.(none)>
Tue, 31 Aug 2010 18:59:17 +0000
(21:59 +0300)
applet/src/livewp-main.c
patch
|
blob
|
history
diff --git
a/applet/src/livewp-main.c
b/applet/src/livewp-main.c
index
7255562
..
6e0e630
100644
(file)
--- a/
applet/src/livewp-main.c
+++ b/
applet/src/livewp-main.c
@@
-58,6
+58,7
@@
view_state_changed (Animation_WallpaperPrivate *priv)
fprintf(stderr," VIew %i State %i\n", priv->view, priv->visible);
if (priv->visible){
/* ToDo make undependent function */
fprintf(stderr," VIew %i State %i\n", priv->view, priv->visible);
if (priv->visible){
/* ToDo make undependent function */
+ /* For Video */
if (!strcmp(priv->theme,"Video")){
if (priv->pipeline){
gst_element_set_state (priv->pipeline, GST_STATE_PLAYING);
if (!strcmp(priv->theme,"Video")){
if (priv->pipeline){
gst_element_set_state (priv->pipeline, GST_STATE_PLAYING);
@@
-65,15
+66,17
@@
view_state_changed (Animation_WallpaperPrivate *priv)
init_scene_Video(priv->desktop_plugin);
}
}
init_scene_Video(priv->desktop_plugin);
}
}
+ /* For Conky */
+ if (!strcmp(priv->theme,"Conky")&& priv->running){
+ conky_visible(priv->desktop_plugin);
+ return;
+ }
+
if (!priv->running){
if (g_hash_table_lookup(priv->hash_theme, "exec_path")){
init_scene_External(priv->desktop_plugin);
}
}
if (!priv->running){
if (g_hash_table_lookup(priv->hash_theme, "exec_path")){
init_scene_External(priv->desktop_plugin);
}
}
- if (!strcmp(priv->theme,"Conky")){
- conky_visible(priv->desktop_plugin);
- }
-
if (priv->long_timer == 0 ){
priv->long_timer = g_timeout_add(LONG_TIMER, (GtkFunction)long_timeout, priv->desktop_plugin);
run_long_timeout(priv->desktop_plugin);
if (priv->long_timer == 0 ){
priv->long_timer = g_timeout_add(LONG_TIMER, (GtkFunction)long_timeout, priv->desktop_plugin);
run_long_timeout(priv->desktop_plugin);
@@
-81,10
+84,16
@@
view_state_changed (Animation_WallpaperPrivate *priv)
run_long_timeout(priv->desktop_plugin);
}
}else{
run_long_timeout(priv->desktop_plugin);
}
}else{
+ /* For Video */
if (priv->pipeline){
gst_element_set_state (priv->pipeline, GST_STATE_PAUSED);
return;
}
if (priv->pipeline){
gst_element_set_state (priv->pipeline, GST_STATE_PAUSED);
return;
}
+ /* For Conky */
+ if (!strcmp(priv->theme,"Conky")){
+ conky_visible(priv->desktop_plugin);
+ return;
+ }
if (priv->long_timer != 0 ){
g_source_remove(priv->long_timer);
priv->long_timer = 0;
if (priv->long_timer != 0 ){
g_source_remove(priv->long_timer);
priv->long_timer = 0;