added colorflood
authorvlad <vlad@vlanout.(none)>
Sun, 29 Aug 2010 18:30:20 +0000 (21:30 +0300)
committervlad <vlad@vlanout.(none)>
Sun, 29 Aug 2010 18:30:20 +0000 (21:30 +0300)
applet/data/external_themes/colorflood.xml [new file with mode: 0644]
applet/src/livewp-settings.c

diff --git a/applet/data/external_themes/colorflood.xml b/applet/data/external_themes/colorflood.xml
new file mode 100644 (file)
index 0000000..59b30f7
--- /dev/null
@@ -0,0 +1,8 @@
+<theme>
+<name>Colorflood</name>
+ <exec_path>/usr/bin/colorflood --livewallpaper</exec_path>
+ <window_name>colorflood</window_name>
+ <category>Unknown</category>
+ <icon_on>/usr/share/livewp/external_icons/xscreensaver.png</icon_on>
+ <icon_off>/usr/share/livewp/external_icons/xscreensaverd.png</icon_off>
+</theme>
index 624da8b..cbf1da7 100644 (file)
@@ -687,6 +687,14 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) {
                         break;
                     }
                 }
+                /* Check Colorflood program */
+                if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), "Colorflood")){
+                    if (access("/usr/bin/colorflood", F_OK) != 0){
+                        show_problem_package(button,"'Colorflood'");
+                        /* if not scuccess exit from wthout saving */ 
+                        break;
+                    }
+                }
 
                 if (priv->theme)
                     g_free(priv->theme);