[geary] Work around composer info label being too long. Fixes Bug 790435.



commit 7fa755f0b70e7e42a704fa2624c603679bc76305
Author: Michael James Gratton <mike vee net>
Date:   Sat Apr 14 12:46:55 2018 +1000

    Work around composer info label being too long. Fixes Bug 790435.
    
    * ui/composer-widget.ui: Make the info label esliipsisable, but give it a
      reasonable minimum size.
    
    * src/client/composer/composer-widget.vala (ComposerWidget): Set the info
      label's tooltip with the text so it can still be read when ellipsed.

 src/client/composer/composer-widget.vala |    1 +
 ui/composer-widget.ui                    |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 0b02e65..7bcf028 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -2046,6 +2046,7 @@ public class ComposerWidget : Gtk.EventBox {
         }
 
         this.info_label.set_text(text);
+        this.info_label.set_tooltip_text(text);
     }
 
     // Updates from combobox contents and visibility, returns true if
diff --git a/ui/composer-widget.ui b/ui/composer-widget.ui
index 1d1d78b..7ecd48d 100644
--- a/ui/composer-widget.ui
+++ b/ui/composer-widget.ui
@@ -762,6 +762,8 @@
               <object class="GtkLabel" id="info_label">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
+                <property name="ellipsize">end</property>
+                <property name="width_chars">6</property>
                 <style>
                   <class name="dim-label"/>
                 </style>


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