[baobab] Set button arrow icons according to locale's text direction
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Set button arrow icons according to locale's text direction
- Date: Mon, 17 Jun 2013 21:05:55 +0000 (UTC)
commit eb58d8c5c1653ed683fae1f1f74cbfdc9cd62307
Author: Yosef Or Boczko <yosefor3 walla com>
Date: Mon Jun 17 18:55:37 2013 +0300
Set button arrow icons according to locale's text direction
https://bugzilla.gnome.org/show_bug.cgi?id=702408
src/baobab-window.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 79865fd..8cb08b7 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -146,6 +146,13 @@ namespace Baobab {
setup_treeview ();
+ var back_button_image = back_button.get_child () as Gtk.Image;
+ if (get_direction () == Gtk.TextDirection.LTR) {
+ back_button_image.icon_name = "go-previous-symbolic";
+ } else {
+ back_button_image.icon_name = "go-previous-rtl-symbolic";
+ }
+
infobar_close_button.clicked.connect (() => { clear_message (); });
ui_settings = Application.get_ui_settings ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]