From e75515a3c172dbccd03b3145a94197058264dd6e Mon Sep 17 00:00:00 2001 From: Vlad Vasiliev Date: Sun, 18 Apr 2010 22:49:36 +0300 Subject: [PATCH] added theme Matrix --- applet/src/livewp-settings.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/applet/src/livewp-settings.c b/applet/src/livewp-settings.c index b7043a6..771e319 100644 --- a/applet/src/livewp-settings.c +++ b/applet/src/livewp-settings.c @@ -36,7 +36,8 @@ void lw_about(void){ vbox = gtk_vbox_new (FALSE, 5); label_about = gtk_label_new (_("Live Wallpaper\n Version 0.4 \n Copyright(c) 2010\n \ Tanya Makova\n Vlad Vasiliev\n \ -Copyright(c) 2010 for design \n Vasya Bobrikov")); +Copyright(c) 2010 for design themes Berlin and Modern \n Vasya Bobrikov\ +Copyright(c) 2010 for design theme Matrix \n Andrew Zhilin")); gtk_box_pack_start (GTK_BOX (vbox), label_about, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox), vbox, TRUE, TRUE, 0); @@ -79,6 +80,10 @@ create_themes_button (gchar *theme){ hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, 1); hildon_button_set_value(HILDON_BUTTON(button), _("Modern")); } + if (!strcmp(theme, "Matrix")){ + hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, 2); + hildon_button_set_value(HILDON_BUTTON(button), _("Matrix")); + } } return button; @@ -132,6 +137,8 @@ lw_settings(GtkWidget *widget, Animation_WallpaperPrivate *priv){ priv->theme = g_strdup("Berlin"); if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Modern"))) priv->theme = g_strdup("Modern"); + if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Matrix"))) + priv->theme = g_strdup("Matrix"); if (hildon_check_button_get_active (rich_animation_button)) priv->rich_animation = TRUE; else -- 1.7.9.5