Группа :: Звук
Пакет: gnome-sound-recorder
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: gnome-sound-recorder-3.28.2-up-2b311ef.patch
Скачать
Скачать
commit 2b311ef67909bc20d0e87f334fe37bf5c4e9f29f
Author: Jan Tojnar <jtojnar@gmail.com>
Date: Fri Jan 18 00:48:25 2019 +0100
Fix crashes when selecting a recording
bdaf42fb228f41d6920a28fee1fa9211c8d5ced4 removed widget property of MainWindow
class, causing crashes for some users.
Closes: https://gitlab.gnome.org/GNOME/gnome-sound-recorder/issues/39
(cherry picked from commit 4dba2aa417829f4ccb465598707c8a5c43900fc3)
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 2b1e8f4..e4e2c83 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -177,8 +177,8 @@ const MainView = new Lang.Class({
if (play.getPipeStates() == PipelineStates.PLAYING) {
play.stopPlaying();
let listRow = this.listBox.get_selected_row();
- let rowWidget = listRow.get_child(this.widget);
- rowWidget.foreach(Lang.bind(this,
+ let rowGrid = listRow.get_child();
+ rowGrid.foreach(Lang.bind(this,
function(child) {
if (child.name == "PauseButton") {
@@ -578,8 +578,8 @@ const MainView = new Lang.Class({
hasPreviousSelRow: function() {
this.destroyLoadMoreButton();
if (previousSelRow != null) {
- let rowWidget = previousSelRow.get_child(this.widget);
- rowWidget.foreach(Lang.bind(this,
+ let rowGrid = previousSelRow.get_child();
+ rowGrid.foreach(Lang.bind(this,
function(child) {
let alwaysShow = child.get_no_show_all();
@@ -628,9 +628,9 @@ const MainView = new Lang.Class({
}
previousSelRow = selectedRow;
- let selectedRowWidget = previousSelRow.get_child(this.widget);
- selectedRowWidget.show_all();
- selectedRowWidget.foreach(Lang.bind(this,
+ let selectedRowGrid = previousSelRow.get_child();
+ selectedRowGrid.show_all();
+ selectedRowGrid.foreach(Lang.bind(this,
function(child) {
let alwaysShow = child.get_no_show_all();
@@ -650,8 +650,8 @@ const MainView = new Lang.Class({
_getFileFromRow: function(selected) {
let fileForAction = null;
- let rowWidget = selected.get_child(this.fileName);
- rowWidget.foreach(Lang.bind(this,
+ let rowGrid = selected.get_child();
+ rowGrid.foreach(Lang.bind(this,
function(child) {
if (child.name == "FileNameLabel") {
@@ -699,8 +699,8 @@ const MainView = new Lang.Class({
setNameLabel: function(newName, oldName, index) {
let selected = this.listBox.get_row_at_index(index);
- let rowWidget = selected.get_child(oldName);
- rowWidget.foreach(Lang.bind(this,
+ let rowGrid = selected.get_child();
+ rowGrid.foreach(Lang.bind(this,
function(child) {
if (child.name == "FileNameLabel") {
@@ -709,7 +709,7 @@ const MainView = new Lang.Class({
child.label = markup;
}
}));
- rowWidget.set_name(newName);
+ rowGrid.set_name(newName);
},
onPause: function(listRow) {
@@ -717,8 +717,8 @@ const MainView = new Lang.Class({
if (activeState == PipelineStates.PLAYING) {
play.pausePlaying();
- let rowWidget = listRow.get_child(this.widget);
- rowWidget.foreach(Lang.bind(this,
+ let rowGrid = listRow.get_child();
+ rowGrid.foreach(Lang.bind(this,
function(child) {
if (child.name == "PauseButton") {
@@ -741,8 +741,8 @@ const MainView = new Lang.Class({
if (activeState != PipelineStates.PLAYING) {
play.startPlaying();
- let rowWidget = listRow.get_child(this.widget);
- rowWidget.foreach(Lang.bind(this,
+ let rowGrid = listRow.get_child();
+ rowGrid.foreach(Lang.bind(this,
function(child) {
if (child.name == "InfoButton" || child.name == "DeleteButton" ||