summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2013-03-04 15:44:27 +0300
committerEric Koegel <eric.koegel@gmail.com>2013-03-10 11:38:47 +0300
commitc4a10cc1524490d35a6afd7aa67cdd57c59729b8 (patch)
treeb1127f669ff15d213b3ea886f917440151e7ef2a
parentd51fb8ba1ca31f1f66f2855c4e514b80b88b15de (diff)
downloadxfdesktop-c4a10cc1524490d35a6afd7aa67cdd57c59729b8.tar.gz
Add an iconview tooltip
Add a tooltip letting the user know that the image style is set to none and therefore they can't select a wallpaper in the iconview.
-rw-r--r--settings/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/main.c b/settings/main.c
index 239eab1f..f82bd7c7 100644
--- a/settings/main.c
+++ b/settings/main.c
@@ -848,8 +848,11 @@ cb_xfdesktop_combo_image_style_changed(GtkComboBox *combo,
if(gtk_combo_box_get_active(combo) == XFCE_BACKDROP_IMAGE_NONE) {
gtk_widget_set_sensitive(panel->image_iconview, FALSE);
+ gtk_widget_set_tooltip_text(panel->image_iconview,
+ _("Image selection is unavailable while the image style is set to None."));
} else {
gtk_widget_set_sensitive(panel->image_iconview, TRUE);
+ gtk_widget_set_tooltip_text(panel->image_iconview, _("Select a background image for this display."));
}
}