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 \
/********************************************************************************/
GtkWidget *
create_image_button (gint view, DBusConnection *conn_sess){
- GtkWidget *button;
GtkWidget *event_box;
Animation_WallpaperPrivate *priv = g_new0(Animation_WallpaperPrivate, 1);
if (choice){
if (!strcmp(choice,"Xscreensaver"))
if (access("/usr/bin/xscreensaver", F_OK) != 0){
- hildon_banner_show_information(GTK_WIDGET(picker), NULL,
- _("You haven't got the installed package Xscreensaver. Please install it via using Application Manager"));
+ show_problem_package((GtkWidget *)picker, "Xscreensaver");
}
}
}
/*******************************************************************************/
+void
+show_problem_package (GtkWidget *widget, gchar *package_name){
+ gchar *text;
+ text = g_strdup_printf(_("You haven't got the installed package %s. Please install it via using Application Manager"), package_name);
+ hildon_banner_show_information(GTK_WIDGET(widget), NULL, text);
+ g_free(text);
+}
+/*******************************************************************************/
void
lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) {
gint result;
GtkWidget *category_button;
GtkWidget *enable_button;
GtkWidget *vbox;
- GtkWidget *temp_button;
GtkWidget *area_vbox;
GtkWidget *button1 = NULL;
GtkWidget *rich_animation_button = NULL;
/* Check Xsnow program */
if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Xsnow"))){
if (access("/usr/bin/xsnow", F_OK) != 0){
- hildon_banner_show_information(GTK_WIDGET(button), NULL,
- _("You haven't got the installed package Xsnow. Please install it via using Application Manager"));
+ show_problem_package(button, "Xsnow");
/* if not scuccess exit from wthout saving */
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){
- hildon_banner_show_information(GTK_WIDGET(button), NULL,
- _("You haven't got the installed package 'Sherman's Aquarium'. Please install it via using Application Manager"));
+ show_problem_package(button,"'Sherman's Aquarium'");
+ /* if not scuccess exit from wthout saving */
+ 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;
}