[gnome-sound-recorder] Fix Bug 724455 The window size is too wide
- From: Meg Ford (Margaret) <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] Fix Bug 724455 The window size is too wide
- Date: Tue, 30 Dec 2014 04:56:26 +0000 (UTC)
commit 27c291c938326bf451afd83e299c8d4802bae523
Author: Meg Ford <megford gnome org>
Date: Mon Dec 29 22:51:26 2014 -0600
Fix Bug 724455 The window size is too wide
Remove additional resizing code
data/org.gnome.gnome-sound-recorder.gschema.xml | 2 +-
src/mainWindow.js | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/org.gnome.gnome-sound-recorder.gschema.xml b/data/org.gnome.gnome-sound-recorder.gschema.xml
index 1973424..3b6c40c 100644
--- a/data/org.gnome.gnome-sound-recorder.gschema.xml
+++ b/data/org.gnome.gnome-sound-recorder.gschema.xml
@@ -1,7 +1,7 @@
<schemalist>
<schema id="org.gnome.gnome-sound-recorder" path="/org/gnome/gnome-sound-recorder/">
<key name="window-size" type="ai">
- <default>[800, 480]</default>
+ <default>[780, 480]</default>
<summary>Window size</summary>
<description>Window size (width and height).</description>
</key>
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 9b863ff..fb31111 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -98,8 +98,10 @@ const MainWindow = new Lang.Class({
play = new Play.Play();
params = Params.fill(params, { title: GLib.get_application_name(),
- default_width: 800,
- default_height: 480 });
+ default_height: 480,
+ default_width: 780,
+ hexpand: true,
+ vexpand:true });
this.parent(params);
header = new Gtk.HeaderBar({ hexpand: true,
@@ -355,7 +357,7 @@ const MainView = new Lang.Class({
this.listBox.set_selection_mode(Gtk.SelectionMode.SINGLE);
this.listBox.set_header_func(null);
this.listBox.set_activate_on_single_click(true);
- this.listBox.connect("activated", Lang.bind(this,
+ this.listBox.connect("row-activated", Lang.bind(this,
function(){
this.rowGridCallback(this.listBox.get_selected_row())
}));
@@ -723,7 +725,6 @@ const MainView = new Lang.Class({
onPlayPauseToggled: function(listRow, selFile) {
this.activeState = play.getPipeStates();
setVisibleID = ActiveArea.PLAY;
- let width = listRow.get_allocated_width();
if (this.activeState != PipelineStates.PLAYING) {
play.startPlaying();
@@ -761,7 +762,6 @@ const MainView = new Lang.Class({
child.sensitive = true;
}
}));
- listRow.set_property("width-request", width);
if (this.activeState != PipelineStates.PAUSED) {
wave = new Waveform.WaveForm(this.wFGrid, selFile);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]