checked warnings, removed theme orrery
[livewp] / applet / src / livewp-home-widget.c
index 4181cbb..e4117a8 100644 (file)
@@ -7,8 +7,8 @@
  *       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
@@ -150,7 +150,7 @@ desktop_plugin_visible_notify (GObject    *object,
     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)
@@ -239,6 +239,7 @@ animation_wallpaper_plugin_init (AWallpaperPlugin *desktop_plugin)
     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();
@@ -280,7 +281,6 @@ fprintf(stderr,"lw_applet_finalize\n");
             destroy_scene(desktop_plugin);
      }
 */    
-     
      if (priv){
             switch (priv->view + 1){
                case 1: send_dbus_signal (priv, LIVEWP_SIGNAL_INTERFACE, 
@@ -301,16 +301,20 @@ fprintf(stderr,"lw_applet_finalize\n");
          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);
 }