aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-11 12:42:55 -0600
committerTed Gould <ted@gould.cx>2010-01-11 12:42:55 -0600
commiteb17be92dbd586aef4f185d2e0c5af2ff6485c1b (patch)
tree26bd4120a1ded102b70687eccf1763c27b96cf59
parenta9e8173a206f81967c099c2985253939f7445978 (diff)
downloadlibdbusmenu-eb17be92dbd586aef4f185d2e0c5af2ff6485c1b.tar.gz
libdbusmenu-eb17be92dbd586aef4f185d2e0c5af2ff6485c1b.tar.bz2
libdbusmenu-eb17be92dbd586aef4f185d2e0c5af2ff6485c1b.zip
Building the icon name based on the text direction of the menuitem widget.
-rw-r--r--libdbusmenu-gtk/client.c3
1 files changed, 2 insertions, 1 deletions
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. */