[gnome-documents] Use the new support for RTL icons in GTK+
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] Use the new support for RTL icons in GTK+
- Date: Wed, 28 May 2014 09:11:48 +0000 (UTC)
commit 6012029842dbfb4b4e40f8209816f223ed83664d
Author: Debarshi Ray <debarshir gnome org>
Date: Tue May 27 16:25:09 2014 +0200
Use the new support for RTL icons in GTK+
Bump minimum GTK+ version to 3.13.2.
https://bugzilla.gnome.org/show_bug.cgi?id=730825
configure.ac | 2 +-
src/mainToolbar.js | 5 +----
src/preview.js | 8 ++------
3 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3220a74..ad81358 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,7 @@ AC_SUBST(LIBM)
EVINCE_MIN_VERSION=3.7.4
WEBKITGTK_MIN_VERSION=1.10.0
GLIB_MIN_VERSION=2.39.3
-GTK_MIN_VERSION=3.11.5
+GTK_MIN_VERSION=3.13.2
GOBJECT_INTROSPECTION_MIN_VERSION=1.31.6
GDATA_MIN_VERSION=0.13.3
GOA_MIN_VERSION=3.2.0
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index 3028382..d7b3c9d 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -83,10 +83,7 @@ const MainToolbar = new Lang.Class({
},
addBackButton: function() {
- let iconName =
- (this.toolbar.get_direction() == Gtk.TextDirection.RTL) ?
- 'go-next-symbolic' : 'go-previous-symbolic';
- let backButton = new Gd.HeaderSimpleButton({ symbolic_icon_name: iconName,
+ let backButton = new Gd.HeaderSimpleButton({ symbolic_icon_name: 'go-previous-symbolic',
label: _("Back") });
this.toolbar.pack_start(backButton);
return backButton;
diff --git a/src/preview.js b/src/preview.js
index 92fe2c0..aaacd1b 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -614,11 +614,7 @@ const PreviewNavControls = new Lang.Class({
});
buttonArea.pack_start(button, false, false, 0);
- let isRtl = (this._previewView.widget.get_direction() == Gtk.TextDirection.RTL);
- let prevIconName = isRtl ? 'go-next-symbolic' : 'go-previous-symbolic';
- let nextIconName = isRtl ? 'go-previous-symbolic' : 'go-next-symbolic';
-
- this.prev_widget = new Gtk.Button({ child: new Gtk.Image ({ icon_name: prevIconName,
+ this.prev_widget = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'go-previous-symbolic',
pixel_size: 16 }),
margin_start: _PREVIEW_NAVBAR_MARGIN,
margin_end: _PREVIEW_NAVBAR_MARGIN,
@@ -630,7 +626,7 @@ const PreviewNavControls = new Lang.Class({
this.prev_widget.connect('enter-notify-event', Lang.bind(this, this._onEnterNotify));
this.prev_widget.connect('leave-notify-event', Lang.bind(this, this._onLeaveNotify));
- this.next_widget = new Gtk.Button({ child: new Gtk.Image ({ icon_name: nextIconName,
+ this.next_widget = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'go-next-symbolic',
pixel_size: 16 }),
margin_start: _PREVIEW_NAVBAR_MARGIN,
margin_end: _PREVIEW_NAVBAR_MARGIN,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]