diff options
author | Ted Gould <ted@gould.cx> | 2010-01-11 12:47:11 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-11 12:47:11 -0600 |
commit | 970db778792cd0c1ccae2506f701781946028870 (patch) | |
tree | 9518158144c1b7ebc8abe614c168a6f40b6c10bf /libdbusmenu-gtk/client.c | |
parent | 95c320b4d0c411737d0298914498916cca01f553 (diff) | |
parent | eb17be92dbd586aef4f185d2e0c5af2ff6485c1b (diff) | |
download | libdbusmenu-970db778792cd0c1ccae2506f701781946028870.tar.gz libdbusmenu-970db778792cd0c1ccae2506f701781946028870.tar.bz2 libdbusmenu-970db778792cd0c1ccae2506f701781946028870.zip |
* Upstream update
* Setting direction based on parent widget text direction.
Diffstat (limited to 'libdbusmenu-gtk/client.c')
-rw-r--r-- | libdbusmenu-gtk/client.c | 3 |
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. */ |