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);
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 (!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);
run_long_timeout(priv->desktop_plugin);
}
}else{
+ /* For Video */
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;