[gitg] Use the new support for RTL icons in GtkIconTheme
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Use the new support for RTL icons in GtkIconTheme
- Date: Wed, 25 Jun 2014 21:53:25 +0000 (UTC)
commit f528deeab6be2c9d04da89ac04c7265234a1b72d
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Thu Jun 26 00:43:18 2014 +0300
Use the new support for RTL icons in GtkIconTheme
In the new GTK+ (from 3.13.2).
gitg/gitg-window.vala | 7 ++-----
gitg/resources/ui/gitg-window.ui | 1 +
2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index e26a51f..6a4ec3e 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -163,14 +163,11 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
d_environment[e] = Environment.get_variable(e);
}
- if (get_direction () == Gtk.TextDirection.RTL)
+ if (Gtk.check_version(3, 13, 2) != null &&
+ get_direction () == Gtk.TextDirection.RTL)
{
dash_image.icon_name = "go-previous-rtl-symbolic";
}
- else
- {
- dash_image.icon_name = "go-previous-symbolic";
- }
d_header_bar.remove(d_activities_switcher);
d_header_bar.remove(d_search_button);
diff --git a/gitg/resources/ui/gitg-window.ui b/gitg/resources/ui/gitg-window.ui
index 4de9915..60e87ed 100644
--- a/gitg/resources/ui/gitg-window.ui
+++ b/gitg/resources/ui/gitg-window.ui
@@ -27,6 +27,7 @@
<child>
<object class="GtkImage" id="dash_image">
<property name="visible">True</property>
+ <property name="icon_name">go-previous-symbolic</property>
<property name="icon_size">1</property>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]