[eog] EogWindow: Fix the previous and the next icons in RTL
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogWindow: Fix the previous and the next icons in RTL
- Date: Wed, 5 Feb 2014 19:24:07 +0000 (UTC)
commit 54635a542a89bbb00de3cfee9f5bf325c1f39608
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Mon Feb 3 19:22:38 2014 +0200
EogWindow: Fix the previous and the next icons in RTL
https://bugzilla.gnome.org/show_bug.cgi?id=723544
src/eog-window.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 77b1ed7..fdde49a 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4384,12 +4384,17 @@ set_action_properties (EogWindow *window,
{
GtkAction *action;
EogWindowPrivate *priv = window->priv;
+ gboolean rtl;
+
+ rtl = gtk_widget_get_direction (GTK_WIDGET (window)) == GTK_TEXT_DIR_RTL;
action = gtk_action_group_get_action (gallery_group, "GoPrevious");
+ g_object_set (action, "icon-name", rtl ? "go-previous-rtl" : "go-previous", NULL);
g_object_set (action, "short_label", _("Previous"), NULL);
g_object_set (action, "is-important", TRUE, NULL);
action = gtk_action_group_get_action (gallery_group, "GoNext");
+ g_object_set (action, "icon-name", rtl ? "go-next-rtl" : "go-next", NULL);
g_object_set (action, "short_label", _("Next"), NULL);
g_object_set (action, "is-important", TRUE, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]