[baobab] Use the new support for RTL icons in GtkIconTheme
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Use the new support for RTL icons in GtkIconTheme
- Date: Wed, 21 May 2014 13:52:17 +0000 (UTC)
commit c58dde35fde44ae8d8003953d7ebc92cb87ef814
Author: Stefano Facchini <stefano facchini gmail com>
Date: Wed May 21 15:46:06 2014 +0200
Use the new support for RTL icons in GtkIconTheme
And avoid the deprecated GtkArrow at the same time.
Note that a recent adwaita-icon-theme is required.
src/baobab-location-row.ui | 5 ++---
src/baobab-main-window.ui | 1 +
src/baobab-window.vala | 7 -------
3 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/baobab-location-row.ui b/src/baobab-location-row.ui
index ebdc979..54d5465 100644
--- a/src/baobab-location-row.ui
+++ b/src/baobab-location-row.ui
@@ -92,9 +92,8 @@
</packing>
</child>
<child>
- <object class="GtkArrow" id="arrow">
- <property name="arrow_type">right</property>
- <property name="shadow_type">none</property>
+ <object class="GtkImage" id="arrow">
+ <property name="icon_name">go-next-symbolic</property>
</object>
<packing>
<property name="left_attach">3</property>
diff --git a/src/baobab-main-window.ui b/src/baobab-main-window.ui
index e8c387a..a378d7a 100644
--- a/src/baobab-main-window.ui
+++ b/src/baobab-main-window.ui
@@ -66,6 +66,7 @@
<child>
<object class="GtkImage" id="back_button_image">
<property name="visible">True</property>
+ <property name="icon_name">go-previous-symbolic</property>
<property name="icon_size">1</property>
</object>
</child>
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 029d290..ce9f9fb 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -139,13 +139,6 @@ 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]