[epiphany] ephy-find-toolbar: Set view-wrapped icon according to locale's text direction
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-find-toolbar: Set view-wrapped icon according to locale's text direction
- Date: Tue, 3 Sep 2013 14:22:50 +0000 (UTC)
commit 73e1b4b303084515f99fd33360ed5183df88e39e
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Tue Sep 3 17:20:00 2013 +0300
ephy-find-toolbar: Set view-wrapped icon according to locale's text direction
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 fd04673..2aec2aa 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]