adapted for theme Accel
authortanya <tanyshk@gmail.com>
Thu, 29 Jul 2010 12:46:11 +0000 (15:46 +0300)
committertanya <tanyshk@gmail.com>
Thu, 29 Jul 2010 12:46:11 +0000 (15:46 +0300)
applet/src/livewp-settings.c

index 06c2dd2..b97e13a 100644 (file)
@@ -141,10 +141,12 @@ changed_value_theme_cb (HildonPickerButton *picker, Animation_WallpaperPrivate *
         if (!strcmp(choice, "Matrix")){
             rich_animation_additional_parametr(vbox,priv);
         }
+        if (!strcmp(choice, "Accel")){
+            rich_animation_additional_parametr(vbox,priv);
+        }
         if (!strcmp(choice, "Video")){
             additional_parametr_for_theme_video(vbox, priv);
         }
-
     }
     gtk_widget_show(vbox);
 }
@@ -175,12 +177,12 @@ create_themes_button (gchar *theme){
             hildon_button_set_value(HILDON_BUTTON(button), _("Matrix"));
         }
         if (!strcmp(theme, "Accel")){
-            hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, 2);
+            hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, 3);
             hildon_button_set_value(HILDON_BUTTON(button), _("Accel"));
         }
 
         if (!strcmp(theme, "Video")){
-            hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, 3);
+            hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, 4);
             hildon_button_set_value(HILDON_BUTTON(button), _("Video"));
         }
 
@@ -386,6 +388,7 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) {
                                    vbox, TRUE, TRUE, 5);
     if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Berlin"))||
         !strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Matrix"))||
+        !strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Accel"))||
         !strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Modern"))){
         rich_animation_additional_parametr(vbox, priv);
     }