[shotwell] Properties: Add text to tooltip



commit ef3e4de6ae2d064678460c2989f2379a82e0e1a0
Author: Jens Georg <mail jensge org>
Date:   Sun May 6 13:19:57 2018 +0200

    Properties: Add text to tooltip
    
    To be able to see the full text even if it's ellipsed.

 src/Properties.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Properties.vala b/src/Properties.vala
index 038f043..05c523f 100644
--- a/src/Properties.vala
+++ b/src/Properties.vala
@@ -39,6 +39,9 @@ private abstract class Properties : Gtk.Grid {
             info = (Gtk.Widget) info_scroll;
         } else {
             Gtk.Label info_label = new Gtk.Label("");
+            if (!is_string_empty(info_text)) {
+                info_label.set_tooltip_markup(info_text);
+            }
             info_label.set_markup(is_string_empty(info_text) ? "" : info_text);
             info_label.set_ellipsize(Pango.EllipsizeMode.END);
             info_label.xalign = 0.0f;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]