* for the code
*
* This software is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1 of
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful, but
gboolean visible;
Animation_WallpaperPrivate *priv = desktop_plugin->priv;
g_object_get (object, "is-on-current-desktop", &visible, NULL);
- /* fprintf (stderr, "is-on-current-desktop changed. visible: %u", visible); */
+ fprintf (stderr, "LWP is-on-current-desktop changed. visible: %u", visible);
if (priv){
if (priv->one_in_all_view){
if (visible)
priv->xapplet = 0;
priv->yapplet = 0;
priv->scene = NULL;
+ priv->pid = 0;
priv->theme = g_strdup("Modern");
//priv->theme = g_strdup("Accel");
desktop_plugin->priv->main_widget = gtk_fixed_new();
destroy_scene(desktop_plugin);
}
*/
-
if (priv){
switch (priv->view + 1){
case 1: send_dbus_signal (priv, LIVEWP_SIGNAL_INTERFACE,
g_source_remove(priv->alive_timer);
livewp_deinitialize_dbus(priv);
- while (TRUE){
- wpid = wait(&status);
- if (wpid == priv->pid)
- break;
+
+ if (priv->pid >0){
+ while (TRUE){
+ wpid = wait(&status);
+ if (wpid == priv->pid)
+ break;
+ }
}
}
static void
desktop_widget_finalize (GObject *object)
{
+fprintf(stderr,"desktop lw_applet_finalize\n");
/* Call the base class's implementation: */
G_OBJECT_CLASS (animation_wallpaper_plugin_parent_class)->finalize (object);
}