aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYosef Or Boczko <yoseforb@gmail.com>2013-09-03 22:20:00 +0800
committerYosef Or Boczko <yoseforb@gmail.com>2013-09-03 22:21:31 +0800
commit73e1b4b303084515f99fd33360ed5183df88e39e (patch)
tree7e8bacd9088e9700c1896cd8f6d59684217003f6 /src
parentdeb2960ee482dd3675df46cc8b18f66a6fb7629b (diff)
downloadgsoc2013-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.c4
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;
}