priv->short_timer = 0;
}
destroy_scene(priv->desktop_plugin);
- if (priv->podpid > 1)
- kill (priv->podpid, SIGTERM);
-
osso_deinitialize(priv->osso);
g_hash_table_destroy(priv->hash_scene_func);
g_free(priv->desktop_plugin);
priv->window = main_widget;
fprintf(stderr,"XWINDOW %i\n",GDK_WINDOW_XID (main_widget->window));
priv->desktop_plugin = desktop_plugin;
-
priv->view = view;
+
+ if (current_active_view() == view)
+ priv->visible = TRUE;
+ else
+ priv->visible = FALSE;
+
/* Load config */
read_config(priv);
+
/* Initialize DBUS */
livewp_initialize_dbus(priv);
set_live_bg(GDK_WINDOW_XDISPLAY (main_widget->window), GDK_WINDOW_XID (main_widget->window), view);
- if (current_active_view() == view)
- priv->visible = TRUE;
- else
- priv->visible = FALSE;
priv->view_notify = 0;
fprintf(stderr,"VISIBLE %i %i\n",priv->visible, current_active_view());
if (desktop_plugin->priv->scene){
GSList * tmp = desktop_plugin->priv->scene->actors;
while (tmp != NULL){
- destroy_actor(tmp->data);
- tmp = g_slist_next(tmp);
+ destroy_actor(tmp->data);
+ tmp = g_slist_next(tmp);
}
if (tmp)
- g_slist_free(tmp);
+ g_slist_free(tmp);
desktop_plugin->priv->scene->actors = NULL;
if (desktop_plugin->priv->scene){
- g_free(desktop_plugin->priv->scene);
- desktop_plugin->priv->scene = NULL;
+ g_free(desktop_plugin->priv->scene);
+ desktop_plugin->priv->scene = NULL;
}
}
if (desktop_plugin->priv->pipeline){
gst_object_unref (GST_OBJECT (desktop_plugin->priv->pipeline));
}
+ if (desktop_plugin->priv->podpid > 1){
+ kill (desktop_plugin->priv->podpid, SIGTERM);
+ desktop_plugin->priv->podpid = -1;
+ }
}
/*******************************************************************************/
void