[gnome-sound-recorder] Slightly less broken
- From: Meg Ford (Margaret) <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] Slightly less broken
- Date: Mon, 28 Dec 2015 21:48:50 +0000 (UTC)
commit e3fe4e753e9efa534ac83a2a14e874c10adacd27
Author: Meg Ford <megford gnome org>
Date: Sat Dec 12 17:14:40 2015 -0600
Slightly less broken
src/mainWindow.js | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 5c6ab03..817dc50 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -172,13 +172,10 @@ const MainView = new Lang.Class({
this.add_titled(groupGrid, name, "View");
},
- onPlayStopClicked: function(button) {
- let row = button.get_parent().get_parent();
- this.listBox.select_row(row);
-
-
+ onPlayStopClicked: function() {
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,
function(child) {
@@ -403,8 +400,9 @@ const MainView = new Lang.Class({
this.rowGrid.attach(this._playListButton, 0, 0, 2, 2);
this._playListButton.hide();
this._playListButton.connect('clicked', Lang.bind(this,
- function(){
- let row = this.listBox.get_selected_row();
+ function(button){
+ let row = button.get_parent().get_parent();
+ this.listBox.select_row(row);
play.passSelected(row);
let gridForName = row.get_child();
let idx = parseInt(gridForName.name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]