From 7fa755f0b70e7e42a704fa2624c603679bc76305 Mon Sep 17 00:00:00 2001 From: Michael James Gratton Date: Sat, 14 Apr 2018 12:46:55 +1000 Subject: [PATCH] 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(+) diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala index 0b02e651..7bcf028c 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 1d1d78bd..7ecd48d1 100644 --- a/ui/composer-widget.ui +++ b/ui/composer-widget.ui @@ -762,6 +762,8 @@ True True + end + 6