[totem] Place OSD properly when using RTL locales
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem] Place OSD properly when using RTL locales
- Date: Wed, 18 Nov 2009 15:56:47 +0000 (UTC)
commit 6515e371d9b99c9181d8249e67928b31fbb8f862
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 18 11:35:25 2009 +0000
Place OSD properly when using RTL locales
src/totem-fullscreen.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-fullscreen.c b/src/totem-fullscreen.c
index cd393d4..708c58a 100644
--- a/src/totem-fullscreen.c
+++ b/src/totem-fullscreen.c
@@ -334,7 +334,12 @@ totem_fullscreen_show_popups_or_osd (TotemFullscreen *fs,
monitor = gdk_screen_get_monitor_at_window (screen, window);
gdk_screen_get_monitor_geometry (screen, monitor, &rect);
- gtk_window_move (GTK_WINDOW (fs->priv->osd), rect.x + 8, rect.y + 8);
+ if (gtk_widget_get_direction (fs->priv->bvw) == GTK_TEXT_DIR_RTL)
+ gtk_window_move (GTK_WINDOW (fs->priv->osd),
+ rect.width - 8 - allocation.height / 8,
+ rect.y + 8);
+ else
+ gtk_window_move (GTK_WINDOW (fs->priv->osd), rect.x + 8, rect.y + 8);
gsd_media_keys_window_set_action_custom (GSD_MEDIA_KEYS_WINDOW (fs->priv->osd),
icon_name, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]