g_hash_table_insert(priv->hash_scene_func, g_strdup("Matrix"), (gpointer)&init_scene_Matrix);
g_hash_table_insert(priv->hash_scene_func, g_strdup("Accel"), (gpointer)&init_scene_Accel);
g_hash_table_insert(priv->hash_scene_func, g_strdup("Video"), (gpointer)&init_scene_Video);
+ g_hash_table_insert(priv->hash_scene_func, g_strdup("Xsnow"), (gpointer)&init_scene_Video);
//#endif
//priv->theme = g_strdup("Accel");
desktop_plugin->priv->main_widget = gtk_fixed_new();
g_hash_table_insert(priv->hash_scene_func, g_strdup("Modern"), (gpointer)&init_scene_Modern);
g_hash_table_insert(priv->hash_scene_func, g_strdup("Matrix"), (gpointer)&init_scene_Matrix);
g_hash_table_insert(priv->hash_scene_func, g_strdup("Video"), (gpointer)&init_scene_Video);
+ g_hash_table_insert(priv->hash_scene_func, g_strdup("Xsnow"), (gpointer)&init_scene_xsnow);
priv->scene = NULL;
priv->pipeline = NULL;
}
}
-
+/*******************************************************************************/
void
reload_scene(AWallpaperPlugin *desktop_plugin)
{
destroy_scene(desktop_plugin);
init_scene_theme(desktop_plugin);
}
-
-
+/*******************************************************************************/
void
init_scene_Accel(AWallpaperPlugin *desktop_plugin)
{
run_long_timeout(desktop_plugin);
}
-
+/*******************************************************************************/
void
parsestring(char *line, char **argv)
{
}
#endif
+/*******************************************************************************/
static gboolean
bus_call (GstBus *bus, GstMessage *msg, AWallpaperPlugin *desktop_plugin)
{
gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_PLAYING);
}else{
- if (desktop_plugin->priv->pipeline){ gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_NULL); gst_object_unref (GST_OBJECT (desktop_plugin->priv->pipeline));
- }
+ if (desktop_plugin->priv->pipeline){
+ gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_NULL);
+ gst_object_unref (GST_OBJECT (desktop_plugin->priv->pipeline));
+ }
}
break;
case GST_MESSAGE_ERROR: break;
}
return TRUE;
}
-
+/*******************************************************************************/
void
init_scene_Video(AWallpaperPlugin *desktop_plugin)
{
if (desktop_plugin->priv->visible)
gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_PLAYING);
}
-
+/*******************************************************************************/
void
init_scene_Matrix(AWallpaperPlugin *desktop_plugin)
{
run_long_timeout(desktop_plugin);
}
-
+/*******************************************************************************/
/* Init Modern Scene */
void
init_scene_Modern(AWallpaperPlugin *desktop_plugin)
scene.dynamic_actors = g_slist_append(scene.dynamic_actors, anim);
#endif
}
-
+/*******************************************************************************/
/* Init Berlin Scene */
void
init_scene_Berlin(AWallpaperPlugin *desktop_plugin)
run_long_timeout(desktop_plugin);
}
-
+/*******************************************************************************/
void
init_scene_theme(AWallpaperPlugin *desktop_plugin)
{