[gnome-music/gnome-3-10] 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/gnome-3-10] Make size requests less to fix half-maximized size on most notebooks
- Date: Wed, 19 Feb 2014 15:28:32 +0000 (UTC)
commit de2beab1088898edd61df8071bf9690124243d0b
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 | 4 ++--
gnomemusic/widgets.py | 4 ++--
gnomemusic/window.py | 3 +--
4 files changed, 5 insertions(+), 7 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 f7a2dab..4652dcc 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -66,8 +66,8 @@ class ViewContainer(Stack):
def __init__(self, title, header_bar, selection_toolbar, useStack=False):
Stack.__init__(self,
transition_type=StackTransitionType.CROSSFADE)
- self._grid = Gtk.Grid(orientation=Gtk.Orientation.VERTICAL)
- self._iconWidth = -1
+ self._grid = Gtk.Grid(orientation=Gtk.Orientation.HORIZONTAL)
+ self._iconWidth = 128
self._iconHeight = 128
self._offset = 0
self._adjustmentValueId = 0
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index a8ab1d1..9890e90 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -158,8 +158,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 2f1c5a7..2aa4a67 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -55,8 +55,7 @@ class Window(Gtk.ApplicationWindow):
self.connect('focus-in-event', self._windows_focus_cb)
self.settings = Gio.Settings('org.gnome.Music')
self.add_action(self.settings.create_action('repeat'))
-
- 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]