[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 02/08: Fix RTL alignment of menu items.

noreply at xfce.org noreply at xfce.org
Sat Aug 20 18:33:37 CEST 2016


This is an automated email from the git hooks/post-receive script.

gottcode pushed a commit to annotated tag v1.0.3
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 7d32ec0e349851a180e8cbe04a56a1da5b1e8036
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 f2db143..299cb1a 100644
--- a/src/launcher.cpp
+++ b/src/launcher.cpp
@@ -139,11 +139,15 @@ 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);
 	}
 	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);
 	}
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list