summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-10-21 09:32:10 +0200
committerDanny Baumann <dannybaumann@web.de>2009-03-08 13:17:50 +0100
commit0abc1a2a87b6fe5511b9ae19bc784bba7e00eb87 (patch)
treee46a63391b363a5c80d2ab10d8afa81d56041e5d /gtk
parent29810e06cf116e5fbe819aa64d0d738589af316f (diff)
downloadzcomp-0abc1a2a87b6fe5511b9ae19bc784bba7e00eb87.tar.gz
zcomp-0abc1a2a87b6fe5511b9ae19bc784bba7e00eb87.tar.bz2
Fix fix formatting for RTL languages.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/window-decorator/gtk-window-decorator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c
index edfbe0c..0c83eba 100644
--- a/gtk/window-decorator/gtk-window-decorator.c
+++ b/gtk/window-decorator/gtk-window-decorator.c
@@ -3208,6 +3208,7 @@ max_window_name_width (WnckWindow *win)
if (!name)
return 0;
+ pango_layout_set_auto_dir (d->layout, FALSE);
pango_layout_set_width (d->layout, -1);
pango_layout_set_text (d->layout, name, strlen (name));
pango_layout_get_pixel_size (d->layout, &w, NULL);
@@ -3253,6 +3254,7 @@ update_window_decoration_name (WnckWindow *win)
w = 1;
}
+ pango_layout_set_auto_dir (d->layout, FALSE);
pango_layout_set_width (d->layout, w * PANGO_SCALE);
pango_layout_set_text (d->layout, name, name_length);
@@ -3686,6 +3688,7 @@ update_switcher_window (WnckWindow *win,
tw = width - switcher_context.left_space -
switcher_context.right_space - 64;
+ pango_layout_set_auto_dir (d->layout, FALSE);
pango_layout_set_width (d->layout, tw * PANGO_SCALE);
pango_layout_set_text (d->layout, name, name_length);