[gnome-sound-recorder] Removed old RTL hacks
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] Removed old RTL hacks
- Date: Wed, 16 Jan 2019 22:45:26 +0000 (UTC)
commit 5a0816e8f4d27646e2db23a437b4519604361785
Author: Miguel Vaello MartÃnez <miguel vaellomartinez gmail com>
Date: Tue Sep 20 00:12:17 2016 +0200
Removed old RTL hacks
All RTL code was removed because it gets retrieved automatically.
The code has been updated so that now the system recognizes
if RTL is necessary and loads the icons and other assests into
RTL with just one line of code.
https://bugzilla.gnome.org/show_bug.cgi?id=735961
src/mainWindow.js | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 57aabd9..3ac5cc2 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -60,8 +60,6 @@ var view = null;
var volumeValue = [];
var wave = null;
-var rtl = Gtk.Widget.get_default_direction() == Gtk.TextDirection.RTL;
-
var ActiveArea = {
RECORD: 0,
PLAY: 1
@@ -408,9 +406,7 @@ var MainView = new Lang.Class({
// play button
this.playImage = new Gtk.Image({ name: "PlayImage" });
- this.playImage.set_from_icon_name(rtl ? 'media-playback-start-rtl-symbolic' :
- 'media-playback-start-symbolic',
- Gtk.IconSize.BUTTON);
+ this.playImage.set_from_icon_name('media-playback-start-symbolic', Gtk.IconSize.BUTTON);
this._playListButton = new Gtk.Button({ name: "PlayButton",
hexpand: true,
vexpand: true });
@@ -447,7 +443,7 @@ var MainView = new Lang.Class({
}));
this._fileName = new Gtk.Label({ name: "FileNameLabel",
- ellipsize: rtl ? Pango.EllipsizeMode.START :
Pango.EllipsizeMode.END,
+ ellipsize: Pango.EllipsizeMode.END,
halign: Gtk.Align.START,
valign: Gtk.Align.START,
margin_start: 15,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]