[metacity/wip/gtk-theme: 5/51] Don't allow multiline window titles



commit 31c821deb3520aee2c53d372290e2902661aa29b
Author: William Jon McCann <jmccann redhat com>
Date:   Thu Aug 30 15:38:40 2012 -0400

    Don't allow multiline window titles
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683056

 src/ui/frames.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 7f93eec..16e465b 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -542,6 +542,8 @@ meta_frames_ensure_layout (MetaFrames  *frames,
       pango_layout_set_ellipsize (frame->layout, PANGO_ELLIPSIZE_END);
       pango_layout_set_auto_dir (frame->layout, FALSE);
 
+      pango_layout_set_single_paragraph_mode (frame->layout, TRUE);
+
       font_desc = meta_gtk_widget_get_font_desc (widget, scale,
                                                  meta_prefs_get_titlebar_font ());
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]