[gnome-music] view: style fixes for now-playing column
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] view: style fixes for now-playing column
- Date: Thu, 5 Mar 2015 10:35:34 +0000 (UTC)
commit 405b8cfc74c86c4bea4d268c61b3911993af6f91
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Thu Mar 5 11:30:34 2015 +0100
view: style fixes for now-playing column
gnomemusic/view.py | 12 ++++++++----
gnomemusic/widgets.py | 4 ++--
2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index b9e5bca..4164d65 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -447,10 +447,12 @@ class Songs(ViewContainer):
cols = list_widget.get_columns()
cells = cols[0].get_cells()
cells[2].set_visible(False)
- now_playing_symbol_renderer = Gtk.CellRendererPixbuf(xalign=1.0)
+ now_playing_symbol_renderer = Gtk.CellRendererPixbuf(xpad=0,
+ xalign=0.5,
+ yalign=0.5)
column_now_playing = Gtk.TreeViewColumn()
- column_now_playing.set_property('fixed_width', 24)
+ column_now_playing.set_fixed_width(48)
column_now_playing.pack_start(now_playing_symbol_renderer, False)
column_now_playing.set_cell_data_func(now_playing_symbol_renderer,
self._on_list_widget_icon_render, None)
@@ -871,10 +873,12 @@ class Playlist(ViewContainer):
cols = list_widget.get_columns()
cells = cols[0].get_cells()
cells[2].set_visible(False)
- now_playing_symbol_renderer = Gtk.CellRendererPixbuf(xalign=1.0)
+ now_playing_symbol_renderer = Gtk.CellRendererPixbuf(xpad=0,
+ xalign=0.5,
+ yalign=0.5)
column_now_playing = Gtk.TreeViewColumn()
- column_now_playing.set_property('fixed_width', 24)
+ column_now_playing.set_fixed_width(48)
column_now_playing.pack_start(now_playing_symbol_renderer, False)
column_now_playing.set_cell_data_func(now_playing_symbol_renderer,
self._on_list_widget_icon_render, None)
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index 3608145..a085541 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -163,11 +163,11 @@ class AlbumWidget(Gtk.EventBox):
cells[1].set_visible(False)
now_playing_symbol_renderer = Gtk.CellRendererPixbuf(xpad=0,
- xalign=1.0,
+ xalign=0.5,
yalign=0.5)
column_now_playing = Gtk.TreeViewColumn()
- column_now_playing.set_fixed_width(24)
+ column_now_playing.set_fixed_width(48)
column_now_playing.pack_start(now_playing_symbol_renderer, False)
column_now_playing.set_cell_data_func(now_playing_symbol_renderer,
self._on_list_widget_icon_render, None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]