Begiun theme conky
authorvlad <vlad@vlanout.(none)>
Mon, 23 Aug 2010 17:43:29 +0000 (20:43 +0300)
committervlad <vlad@vlanout.(none)>
Mon, 23 Aug 2010 17:43:29 +0000 (20:43 +0300)
applet/data/external_themes/conky.xml [new file with mode: 0644]
applet/src/livewp-settings.c

diff --git a/applet/data/external_themes/conky.xml b/applet/data/external_themes/conky.xml
new file mode 100644 (file)
index 0000000..1244428
--- /dev/null
@@ -0,0 +1,8 @@
+<theme>
+    <name>Conky</name>
+    <exec_path>/usr/bin/conky -d</exec_path>
+    <category>Unknown</category>
+    <icon_on>/usr/share/livewp/theme/Xsnow/icon.png</icon_on>       
+    <icon_off>/usr/share/livewp/theme/Xsnow/icond.png</icon_off>       
+    <window_id>--window-id</window_id>                                                                               
+</theme>
index 956b95f..a1bd1f5 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.5 \n Copyright(c) 2010\n \
+    label_about = gtk_label_new (_("Live Wallpaper Version 0.8.6 \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 \
@@ -662,7 +662,7 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) {
                         break;
                     }
                 }
-                /* Check Xsnow program */
+                /* Check Shermans program */
                 if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), "Shermans Aquarium")){
                     if (access("/usr/bin/shermans", F_OK) != 0){
                         show_problem_package(button,"'Sherman's Aquarium'");
@@ -670,6 +670,14 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) {
                         break;
                     }
                 }
+                /* Check Conky program */
+                if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), "Conky")){
+                    if (access("/usr/bin/conky", F_OK) != 0){
+                        show_problem_package(button,"'Conky'");
+                        /* if not scuccess exit from wthout saving */ 
+                        break;
+                    }
+                }
 
                 if (priv->theme)
                     g_free(priv->theme);