diff options
author | Yosef Or Boczko <yoseforb@gmail.com> | 2013-09-03 22:20:00 +0800 |
---|---|---|
committer | Yosef Or Boczko <yoseforb@gmail.com> | 2013-09-03 22:21:31 +0800 |
commit | 73e1b4b303084515f99fd33360ed5183df88e39e (patch) | |
tree | 7e8bacd9088e9700c1896cd8f6d59684217003f6 /src | |
parent | deb2960ee482dd3675df46cc8b18f66a6fb7629b (diff) | |
download | gsoc2013-epiphany-73e1b4b303084515f99fd33360ed5183df88e39e.tar gsoc2013-epiphany-73e1b4b303084515f99fd33360ed5183df88e39e.tar.gz gsoc2013-epiphany-73e1b4b303084515f99fd33360ed5183df88e39e.tar.bz2 gsoc2013-epiphany-73e1b4b303084515f99fd33360ed5183df88e39e.tar.lz gsoc2013-epiphany-73e1b4b303084515f99fd33360ed5183df88e39e.tar.xz gsoc2013-epiphany-73e1b4b303084515f99fd33360ed5183df88e39e.tar.zst gsoc2013-epiphany-73e1b4b303084515f99fd33360ed5183df88e39e.zip |
ephy-find-toolbar: Set view-wrapped icon according to locale's text direction
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-find-toolbar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index fd04673af..2aec2aa4a 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -137,6 +137,7 @@ set_status (EphyFindToolbar *toolbar, EphyFindToolbarPrivate *priv = toolbar->priv; const char *icon_name = "edit-find-symbolic"; const char *tooltip = NULL; + gboolean rtl; switch (result) { @@ -149,7 +150,8 @@ set_status (EphyFindToolbar *toolbar, break; case EPHY_FIND_RESULT_FOUNDWRAPPED: - icon_name = "view-wrapped-symbolic"; + rtl = gtk_widget_get_direction (GTK_WIDGET (toolbar)) == GTK_TEXT_DIR_RTL; + icon_name = rtl ? "view-wrapped-rtl-symbolic" : "view-wrapped-symbolic"; tooltip = _("Search wrapped back to the top"); break; } |