From 73e1b4b303084515f99fd33360ed5183df88e39e Mon Sep 17 00:00:00 2001 From: Yosef Or Boczko Date: Tue, 3 Sep 2013 17:20:00 +0300 Subject: ephy-find-toolbar: Set view-wrapped icon according to locale's text direction --- src/ephy-find-toolbar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3