aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_summary/message_textview.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-08-21 23:21:13 +0200
committerMarvin W <git@larma.de>2017-08-22 00:24:39 +0200
commita24e88f48b9a16239ff91a3ce7b4a70bd2d84fee (patch)
tree156ba4cb6c3ba6d437ee8f0078017e906129482d /main/src/ui/conversation_summary/message_textview.vala
parentdff8e08669996936cb58884c71b5ecd6ad7b1f76 (diff)
downloaddino-a24e88f48b9a16239ff91a3ce7b4a70bd2d84fee.tar.gz
dino-a24e88f48b9a16239ff91a3ce7b4a70bd2d84fee.zip
Fix some UI issues
Diffstat (limited to 'main/src/ui/conversation_summary/message_textview.vala')
-rw-r--r--main/src/ui/conversation_summary/message_textview.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/ui/conversation_summary/message_textview.vala b/main/src/ui/conversation_summary/message_textview.vala
index 28df9a53..80759207 100644
--- a/main/src/ui/conversation_summary/message_textview.vala
+++ b/main/src/ui/conversation_summary/message_textview.vala
@@ -21,6 +21,12 @@ public class MessageTextView : TextView {
style_updated.connect(update_display_style);
}
+ // Workaround GTK TextView issues
+ public override void get_preferred_width (out int minimum_width, out int natural_width) {
+ base.get_preferred_width(out minimum_width, out natural_width);
+ minimum_width = 0;
+ }
+
public void add_text(string text) {
TextIter end;
buffer.get_end_iter(out end);