added new themes
authorVlad <vlad@gas.by>
Thu, 26 Aug 2010 09:46:27 +0000 (12:46 +0300)
committerVlad <vlad@gas.by>
Thu, 26 Aug 2010 09:46:27 +0000 (12:46 +0300)
applet/debian/changelog
applet/src/livewp-scene.c
applet/src/livewp-settings.c

index 0bb2be1..3366e98 100644 (file)
@@ -1,8 +1,10 @@
-live-wallpaper (0.8.6) unstable; urgency=low
+live-wallpaper (0.9) unstable; urgency=low
 
   * Added theme Conky 
+  * Added theme Orrery
+  * Added theme Battery Eye
 
- -- Vlad Vasiliev <vlad@gas.by>  Sun, 23 Aug 2010 07:10:10 +0200
+ -- Vlad Vasiliev <vlad@gas.by>  Mon, 30 Aug 2010 07:10:10 +0200
 
 live-wallpaper (0.8.5) unstable; urgency=low
 
index 4e35d86..bcd3c13 100644 (file)
@@ -258,19 +258,20 @@ init_scene_External(AWallpaperPlugin *desktop_plugin){
     }
     g_free(run_string);
     if (window_name){
-        gtk_widget_destroy(desktop_plugin->priv->window);
         /* Try 10 searching of window */
         for (i=0; i<10; i++){
             sleep(1);
             id_xwindow = Window_With_Name(GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window), 
                 RootWindow( GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window), XDefaultScreen( GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window))),
                 window_name);
-            if (id_xwindow >1){
+            fprintf(stderr,"name %s %i %i\n", window_name, id_xwindow, i);
+            if (id_xwindow>0){
                 set_live_bg (GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window),  id_xwindow, desktop_plugin->priv->view);
                 break;
             }
         }
     }
+    gtk_widget_destroy(desktop_plugin->priv->window);
 }
 /*******************************************************************************/
 gboolean 
index a1bd1f5..45e614a 100644 (file)
@@ -34,7 +34,7 @@ void lw_about(void){
     gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
     gtk_window_set_modal(GTK_WINDOW(window), TRUE);
     vbox = gtk_vbox_new (FALSE, 5);
-    label_about = gtk_label_new (_("Live Wallpaper Version 0.8.6 \n Copyright(c) 2010\n \
+    label_about = gtk_label_new (_("Live Wallpaper Version 0.9 \n Copyright(c) 2010\n \
 Tanya Makova\n Vlad Vasiliev\n \
 Copyright(c) 2010 for design themes Berlin, Modern and Accel Vasya Bobrikov\n \
 Copyright(c) 2010 for design theme Matrix and icons Andrew Zhilin\n \
@@ -678,6 +678,22 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) {
                         break;
                     }
                 }
+                /* Check Battery Eye program */
+                if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), "Battery Eye")){
+                    if (access("/opt/battery-eye/beye", F_OK) != 0){
+                        show_problem_package(button,"'Battery Eye'");
+                        /* if not scuccess exit from wthout saving */ 
+                        break;
+                    }
+                }
+                /* Check Orrery program */
+                if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), "Orrery")){
+                    if (access("/opt/maemo/usr/bin/orrery", F_OK) != 0){
+                        show_problem_package(button,"'Orrery'");
+                        /* if not scuccess exit from wthout saving */ 
+                        break;
+                    }
+                }
 
                 if (priv->theme)
                     g_free(priv->theme);