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



commit 62d6f62d63f6885bb5efbf032b9085b30c5ee811
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 5e99903..eaade9b 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -474,6 +474,7 @@ public class ComposerWidget : Gtk.EventBox {
         // TODO: also listen for account updates to allow adding identities while writing an email
 
         bind_property("toolbar-text", this.info_label, "label", BindingFlags.SYNC_CREATE);
+        bind_property("toolbar-text", this.info_label, "tooltip-text", BindingFlags.SYNC_CREATE);
 
         this.from = new Geary.RFC822.MailboxAddresses.single(account.information.primary_mailbox);
 
diff --git a/ui/composer-widget.ui b/ui/composer-widget.ui
index 50fd22e..769ee9a 100644
--- a/ui/composer-widget.ui
+++ b/ui/composer-widget.ui
@@ -699,6 +699,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]