diff options
author | fiaxh <git@lightrise.org> | 2019-03-01 18:20:08 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-03-14 17:39:31 +0100 |
commit | df6328dfcb9031092ae2f1ba1ef18da600605338 (patch) | |
tree | 83485b75026aab841fad854cbd5263a8f5c2e24e /main/src/ui/unified_window.vala | |
parent | 3880e41497f846b70e2903bfaaaee20dbe8b1a1b (diff) | |
download | dino-df6328dfcb9031092ae2f1ba1ef18da600605338.tar.gz dino-df6328dfcb9031092ae2f1ba1ef18da600605338.zip |
Fix topic displaying issues
fixes #393
Diffstat (limited to 'main/src/ui/unified_window.vala')
-rw-r--r-- | main/src/ui/unified_window.vala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/ui/unified_window.vala b/main/src/ui/unified_window.vala index 8338573e..44107fb3 100644 --- a/main/src/ui/unified_window.vala +++ b/main/src/ui/unified_window.vala @@ -28,10 +28,11 @@ public class UnifiedWindow : Gtk.Window { return Util.use_csd() ? conversation_titlebar_csd.subtitle : conversation_titlebar.subtitle; } set { + string? new_subtitle = value == null ? null : (new Regex("\\s+")).replace_literal(value, -1, 0, " "); if (Util.use_csd()) { - conversation_titlebar_csd.subtitle = value; + conversation_titlebar_csd.subtitle = new_subtitle; } else { - conversation_titlebar.subtitle = value; + conversation_titlebar.subtitle = new_subtitle; } } } |