[gnome-music] Make size requests less to fix half-maximized size on most notebooks
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Make size requests less to fix half-maximized size on most notebooks
- Date: Mon, 17 Feb 2014 11:18:25 +0000 (UTC)
commit 541e2eb8d3da0a79762b5cd4039ebb5766149014
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon Feb 17 12:13:48 2014 +0100
Make size requests less to fix half-maximized size on most notebooks
https://bugzilla.gnome.org/show_bug.cgi?id=700022
data/AlbumWidget.ui | 1 -
gnomemusic/view.py | 2 +-
gnomemusic/widgets.py | 4 ++--
gnomemusic/window.py | 2 +-
4 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/data/AlbumWidget.ui b/data/AlbumWidget.ui
index c394565..44b2a11 100644
--- a/data/AlbumWidget.ui
+++ b/data/AlbumWidget.ui
@@ -4,7 +4,6 @@
<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>
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index d1e750f..a66588a 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -71,7 +71,7 @@ class ViewContainer(Stack):
Stack.__init__(self,
transition_type=StackTransitionType.CROSSFADE)
self._grid = Gtk.Grid(orientation=Gtk.Orientation.HORIZONTAL)
- self._iconWidth = -1
+ self._iconWidth = 128
self._iconHeight = 128
self._offset = 0
self._adjustmentValueId = 0
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index c56da6e..cf119ca 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -160,8 +160,8 @@ class AlbumWidget(Gtk.EventBox):
list_widget = self.view.get_generic_view()
cols = list_widget.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)
cells = cols[0].get_cells()
cells[2].set_visible(False)
cells[1].set_visible(False)
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index c8d4337..4be5134 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -64,7 +64,7 @@ class Window(Gtk.ApplicationWindow):
selectNone = Gio.SimpleAction.new('selectNone', None)
selectNone.connect('activate', self._on_select_none)
self.add_action(selectNone)
- self.set_size_request(887, 640)
+ self.set_size_request(200, 100)
size_setting = self.settings.get_value('window-size')
if isinstance(size_setting[0], int) and isinstance(size_setting[1], int):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]