[gnome-music/windowsize] fixing the default window size
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/windowsize] fixing the default window size
- Date: Thu, 9 May 2013 15:43:14 +0000 (UTC)
commit 0fca6ef3287a19bc9289463bf324cdc08bc6186c
Author: Seif Lotfy <seif lotfy com>
Date: Thu May 9 17:42:50 2013 +0200
fixing the default window size
data/AlbumWidget.ui | 4 +---
src/widgets.js | 5 ++---
src/window.js | 5 +++--
3 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/data/AlbumWidget.ui b/data/AlbumWidget.ui
index b11333c..3220228 100644
--- a/data/AlbumWidget.ui
+++ b/data/AlbumWidget.ui
@@ -4,14 +4,11 @@
<object class="GtkHBox" id="AlbumWidget">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="homogeneous">True</property>
<child>
<object class="GtkHBox" id="albumInfo">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
- <property name="margin_left">32</property>
- <property name="margin_right">32</property>
<property name="margin_top">64</property>
<property name="margin_bottom">32</property>
<property name="vexpand">True</property>
@@ -194,6 +191,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
+ <property name="margin_left">16</property>
<property name="hexpand">True</property>
<child>
<placeholder/>
diff --git a/src/widgets.js b/src/widgets.js
index c745564..fc97e76 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -77,7 +77,6 @@ const AlbumWidget = new Lang.Class({
let child_view = this.view.get_children()[0];
child_view.set_margin_top(64);
child_view.set_margin_bottom(64);
- child_view.set_margin_right(32);
this.view.remove(child_view)
view_box.add(child_view)
@@ -92,8 +91,8 @@ const AlbumWidget = new Lang.Class({
let listWidget = this.view.get_generic_view();
var cols = listWidget.get_columns()
- cols[0].set_min_width(310)
- cols[0].set_max_width(470)
+ cols[0].set_min_width(100)
+ cols[0].set_max_width(200)
var cells = cols[0].get_cells()
cells[2].visible = false
cells[1].visible = false
diff --git a/src/window.js b/src/window.js
index 4559f52..721de4f 100644
--- a/src/window.js
+++ b/src/window.js
@@ -21,6 +21,7 @@
const Lang = imports.lang;
const Gtk = imports.gi.Gtk;
const Gd = imports.gi.Gd;
+const Gdk = imports.gi.Gdk;
const GLib = imports.gi.GLib;
const Gettext = imports.gettext;
@@ -41,8 +42,8 @@ const MainWindow = new Lang.Class({
window_position: Gtk.WindowPosition.CENTER,
hide_titlebar_when_maximized: true
});
-
- this.set_size_request(887, 640);
+ var screen = Gdk.Screen.get_default()
+ this.set_size_request((screen.get_width()/2) - 20, 640);
this._setupView();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]