[geary: 2/8] composer: Ellipsize from fields
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary: 2/8] composer: Ellipsize from fields
- Date: Thu, 23 Jan 2020 08:37:19 +0000 (UTC)
commit decd33d3554018eaecd3ff846801efb5e7764c4f
Author: James Westman <flyingpimonster gmail com>
Date: Sat Jan 11 19:22:12 2020 -0600
composer: Ellipsize from fields
Allow the from_multiple combobox to ellipsize if the name/address is too
long to fit on the screen.
src/client/application/application-main-window.vala | 2 +-
src/client/composer/composer-widget.vala | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/client/application/application-main-window.vala
b/src/client/application/application-main-window.vala
index 97920ff6..253cde9f 100644
--- a/src/client/application/application-main-window.vala
+++ b/src/client/application/application-main-window.vala
@@ -1207,7 +1207,7 @@ public class Application.MainWindow :
on_conversation_view_added
);
- this.conversations_paned.pack2(this.conversation_viewer, true, true);
+ this.conversations_paned.pack2(this.conversation_viewer, true, false);
// Main toolbar
this.main_toolbar = new MainToolbar(config);
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 0a76f90b..ec9e9211 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -605,6 +605,11 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
);
this.background_work_pulse.repetition = FOREVER;
+ // Set the from_multiple combo box to ellipsize. This can't be done
+ // from the .ui file.
+ var cells = this.from_multiple.get_cells();
+ ((Gtk.CellRendererText) cells.data).ellipsize = END;
+
load_entry_completions();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]