diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-09-21 23:41:28 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-09-21 23:41:28 -0400 |
commit | 72d8deb606404477ab37f554a493f29fbab52469 (patch) | |
tree | d084956344682c779aa6faa5f8f45b5f7bfe8f67 /gtk/gtksearchentry.c | |
parent | cca8cd2b2117ad33e124fa0117a211da70bdb285 (diff) | |
download | gtk+-72d8deb606404477ab37f554a493f29fbab52469.tar.gz |
GtkSearchEntry: add rtl support
Flip the clear icon in rtl locales.
https://bugzilla.gnome.org/show_bug.cgi?id=684607
Diffstat (limited to 'gtk/gtksearchentry.c')
-rw-r--r-- | gtk/gtksearchentry.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c index f8f54982cd..b729993b3c 100644 --- a/gtk/gtksearchentry.c +++ b/gtk/gtksearchentry.c @@ -79,7 +79,10 @@ search_entry_changed_cb (GtkEntry *entry, } else { - icon_name = "edit-clear-symbolic"; + if (gtk_widget_get_direction (GTK_WIDGET (entry)) == GTK_TEXT_DIR_RTL) + icon_name = "edit-clear-rtl-symbolic"; + else + icon_name = "edit-clear-symbolic"; active = TRUE; } |