[gnome-music] Reposition the scrollbar in the search window
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Reposition the scrollbar in the search window
- Date: Tue, 2 Feb 2016 13:39:12 +0000 (UTC)
commit 2511bedbc8818a816a41ba1c16338ac8c55b6f05
Author: Saiful B. Khan <saifulbkhan gmail com>
Date: Tue Feb 2 18:50:46 2016 +0530
Reposition the scrollbar in the search window
The position of the scrollbar for the searched items list was
unconventional (not placed at the right end of the page)
In the original implementation for the searched list layout, a
size limit to the main 'ViewContainer' was added. This made the
scrollbar readjust itslef to the end of this container which is
not where it should be. This was corrected by removing size and
alignment modifications from the main container and instead apply
the same modifications to the List that contains rendered elements.
https://bugzilla.gnome.org/show_bug.cgi?id=736463
gnomemusic/view.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index cc4461c..35ac266 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -1340,8 +1340,6 @@ class Search(ViewContainer):
@log
def __init__(self, window, player):
ViewContainer.__init__(self, 'search', None, window, Gd.MainViewType.LIST)
- self.view.set_halign(Gtk.Align.CENTER)
- self.view.set_size_request(530, -1)
self._items = {}
self.isStarred = None
self.iter_to_clean = None
@@ -1550,6 +1548,8 @@ class Search(ViewContainer):
@log
def _add_list_renderers(self):
list_widget = self.view.get_generic_view()
+ list_widget.set_halign(Gtk.Align.CENTER)
+ list_widget.set_size_request(530, -1)
cols = list_widget.get_columns()
title_renderer = Gtk.CellRendererText(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]