aboutsummaryrefslogtreecommitdiff
path: root/src/prompt-box.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/prompt-box.vala')
-rw-r--r--src/prompt-box.vala7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/prompt-box.vala b/src/prompt-box.vala
index 2180c70..273c507 100644
--- a/src/prompt-box.vala
+++ b/src/prompt-box.vala
@@ -385,13 +385,18 @@ public class PromptBox : FadableBox
queue_draw ();
}
- public void set_options_image (Gdk.Pixbuf? image)
+ public void set_options_image (Gdk.Pixbuf? image, string? tooltip)
{
if (option_button == null)
return;
option_image.pixbuf = image;
+ if (tooltip == null)
+ option_image.set_tooltip_text("");
+ else
+ option_image.set_tooltip_text(tooltip);
+
if (image == null)
option_button.hide ();
else