[gnome-sound-recorder] various files: UI fixes
- From: Meg Ford (Margaret) <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] various files: UI fixes
- Date: Sat, 15 Feb 2014 01:43:48 +0000 (UTC)
commit 072f6c442a739757f8fcf7a001357b4e17ab9481
Author: Meg Ford <meg387 gmail com>
Date: Fri Feb 14 19:21:25 2014 -0600
various files: UI fixes
data/application.css | 2 +-
src/listview.js | 6 ------
src/mainWindow.js | 5 +++--
src/play.js | 3 +--
4 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/data/application.css b/data/application.css
index 9431b7e..96edf1a 100644
--- a/data/application.css
+++ b/data/application.css
@@ -32,7 +32,7 @@
.view .toolbarSecond:hover {
border-right: rgba(255,255,255,0.45) 1px solid;
transition: 200ms linear;
-}
+}
.emptyGrid {
background-color: @theme_bg_color;
diff --git a/src/listview.js b/src/listview.js
index 61941a8..cffbe96 100644
--- a/src/listview.js
+++ b/src/listview.js
@@ -242,12 +242,6 @@ const Listview = new Lang.Class({
} else {
// don't index files we can't play
log("File cannot be played");
- let name = allFilesInfo[this.idx].fileName;
- let application = Gio.Application.get_default();
- let deleteFile = application.saveDir.get_child_for_display_name(name);
- deleteFile.delete_async(GLib.PRIORITY_DEFAULT, null, null);
- allFilesInfo.splice(this.idx, 1);
- this.idx -= this.idx++;
}
if (this.idx == this.endIdx) {
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 978d6b7..1201ddc 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -92,7 +92,7 @@ const MainWindow = new Lang.Class({
params = Params.fill(params, { title: GLib.get_application_name(),
hexpand: true,
vexpand: true,
- default_width: 675,
+ default_width: 1200,
default_height: 480 });
this.parent(params);
@@ -195,7 +195,8 @@ const MainView = new Lang.Class({
this.recordGrid.hide();
recordPipeline = RecordPipelineStates.STOPPED;
recordButton.set_sensitive(true);
- this.listBox.set_selection_mode(Gtk.SelectionMode.SINGLE);
+ if (this.listBox != null)
+ this.listBox.set_selection_mode(Gtk.SelectionMode.SINGLE);
},
_formatTime: function(unformattedTime) {
diff --git a/src/play.js b/src/play.js
index b63447d..564f49f 100644
--- a/src/play.js
+++ b/src/play.js
@@ -222,8 +222,7 @@ const _TENTH_SEC = 100000000;
},
_showErrorDialog: function(errorStrOne, errorStrTwo) {
- let errorDialog = new Gtk.MessageDialog ({ modal: true,
- destroy_with_parent: true,
+ let errorDialog = new Gtk.MessageDialog ({ destroy_with_parent: true,
buttons: Gtk.ButtonsType.OK,
message_type: Gtk.MessageType.WARNING });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]