/********************************************************************************/
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 */
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;
}