From eb17be92dbd586aef4f185d2e0c5af2ff6485c1b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 11 Jan 2010 12:42:55 -0600 Subject: Building the icon name based on the text direction of the menuitem widget. --- libdbusmenu-gtk/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libdbusmenu-gtk') diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 319083c..dd94663 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -513,7 +513,8 @@ image_property_handle (DbusmenuMenuitem * item, const gchar * property, const GV } else { /* Look to see if we want to have an icon with the 'ltr' or 'rtl' depending on what we're doing. */ - gchar * finaliconname = g_strdup_printf("%s-%s", iconname, "ltr"); + gchar * finaliconname = g_strdup_printf("%s-%s", iconname, + gtk_widget_get_direction(GTK_WIDGET(gimi)) == GTK_TEXT_DIR_RTL ? "rtl" : "ltr"); if (!gtk_icon_theme_has_icon(gtk_icon_theme_get_default(), finaliconname)) { /* If we don't have that icon, fall back to having one without the extra bits. */ -- cgit v1.2.3