[gnome-boxes] Fix the back icons in RTL
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Fix the back icons in RTL
- Date: Wed, 3 Sep 2014 11:05:18 +0000 (UTC)
commit 4b6777f08b1c58803b38f71df2bcb665044be755
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Wed Sep 3 13:46:51 2014 +0300
Fix the back icons in RTL
This is supported by GTK+ itself now.
https://bugzilla.gnome.org/show_bug.cgi?id=735720
src/collection-toolbar.vala | 4 +---
src/display-toolbar.vala | 3 +--
src/properties-toolbar.vala | 3 +--
3 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/collection-toolbar.vala b/src/collection-toolbar.vala
index a453d9e..40d64bf 100644
--- a/src/collection-toolbar.vala
+++ b/src/collection-toolbar.vala
@@ -17,9 +17,7 @@ private class Boxes.CollectionToolbar: HeaderBar {
private AppWindow window;
construct {
- var back_icon = (get_direction () == TextDirection.RTL)? "go-previous-rtl-symbolic" :
- "go-previous-symbolic";
- back_image.set_from_icon_name (back_icon, IconSize.MENU);
+ back_image.set_from_icon_name ("go-previous-symbolic", IconSize.MENU);
}
public void setup_ui (AppWindow window) {
diff --git a/src/display-toolbar.vala b/src/display-toolbar.vala
index 072869d..f32df16 100644
--- a/src/display-toolbar.vala
+++ b/src/display-toolbar.vala
@@ -37,8 +37,7 @@ private class Boxes.DisplayToolbar: Gtk.HeaderBar {
show_close_button = true;
}
- back_image.icon_name = (get_direction () == Gtk.TextDirection.RTL)? "go-previous-rtl-symbolic" :
- "go-previous-symbolic";
+ back_image.icon_name = "go-previous-symbolic";
if (!overlay) {
back.get_style_context ().add_class ("raised");
fullscreen.get_style_context ().add_class ("raised");
diff --git a/src/properties-toolbar.vala b/src/properties-toolbar.vala
index d59a103..1310ecc 100644
--- a/src/properties-toolbar.vala
+++ b/src/properties-toolbar.vala
@@ -16,8 +16,7 @@ private class Boxes.PropertiesToolbar: HeaderBar {
private ulong item_name_id;
construct {
- back_image.icon_name = (get_direction () == TextDirection.RTL)? "go-previous-rtl-symbolic" :
- "go-previous-symbolic";
+ back_image.icon_name = "go-previous-symbolic";
// Work around for https://bugzilla.gnome.org/show_bug.cgi?id=734676
set_custom_title (title_entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]