[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 62/473: Fix RTL alignment of menu items.
noreply at xfce.org
noreply at xfce.org
Mon Feb 16 23:53:52 CET 2015
This is an automated email from the git hooks/post-receive script.
gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit d83ab6eb5393c159743e808dc696ccdb94db1684
Author: Graeme Gott <graeme at gottcode.org>
Date: Wed Jul 3 13:49:28 2013 -0400
Fix RTL alignment of menu items.
---
src/launcher.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/launcher.cpp b/src/launcher.cpp
index 7f8ec5b..6389f63 100644
--- a/src/launcher.cpp
+++ b/src/launcher.cpp
@@ -139,7 +139,9 @@ Launcher::Launcher(GarconMenuItem* item) :
{
details = generic_name;
}
- m_text = g_markup_printf_escaped("<b>%s</b>\n%s", display_name, details);
+ m_text = g_markup_printf_escaped(
+ (gtk_widget_get_default_direction() != GTK_TEXT_DIR_RTL) ? "<b>%s</b>\n%s" : "\342\200\217<b>%s</b>\n\342\200\217%s",
+ display_name, details);
// Create search text
gchar* normalized = g_utf8_normalize(details, -1, G_NORMALIZE_DEFAULT);
@@ -150,7 +152,9 @@ Launcher::Launcher(GarconMenuItem* item) :
}
else
{
- m_text = g_markup_printf_escaped("%s", display_name);
+ m_text = g_markup_printf_escaped(
+ (gtk_widget_get_default_direction() != GTK_TEXT_DIR_RTL) ? "%s" : "\342\200\217%s",
+ display_name);
}
// Create search text
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list