[gnome-control-center/gnome-3-8] shell: Set button arrow icons according to locale's text direction
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] shell: Set button arrow icons according to locale's text direction
- Date: Wed, 5 Jun 2013 09:26:50 +0000 (UTC)
commit 4e8aab6304fb22fb5d6a8d087a74fa40cda49bc6
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Jun 5 11:22:13 2013 +0200
shell: Set button arrow icons according to locale's text direction
https://bugzilla.gnome.org/show_bug.cgi?id=700543
shell/cc-window.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 4e337ab..997447a 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -1400,12 +1400,15 @@ create_header (CcWindow *self)
CcWindowPrivate *priv = self->priv;
GtkWidget *button;
AtkObject *accessible;
+ gboolean rtl;
+
+ rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
priv->header = gd_header_bar_new ();
priv->previous_button = button = gd_header_simple_button_new ();
gd_header_button_set_symbolic_icon_name (GD_HEADER_BUTTON (button),
- "go-previous-symbolic");
+ rtl ? "go-previous-rtl-symbolic" : "go-previous-symbolic");
gtk_widget_set_no_show_all (button, TRUE);
accessible = gtk_widget_get_accessible (button);
atk_object_set_name (accessible, _("All Settings"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]