[gnome-music/wip/jfelder/baseview-must-die] playlistsview: Inherit from GtkBox
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/baseview-must-die] playlistsview: Inherit from GtkBox
- Date: Tue, 26 May 2020 21:17:40 +0000 (UTC)
commit 0605edda725cd4cf74e6afa2e79a1589ea2c9e94
Author: Jean Felder <jfelder src gnome org>
Date: Tue May 26 23:15:43 2020 +0200
playlistsview: Inherit from GtkBox
There is no point in using GtkStack.
data/ui/PlaylistsView.ui | 2 +-
gnomemusic/views/playlistsview.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/PlaylistsView.ui b/data/ui/PlaylistsView.ui
index f1714731..66afd2ca 100644
--- a/data/ui/PlaylistsView.ui
+++ b/data/ui/PlaylistsView.ui
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.18"/>
- <template class="PlaylistsView" parent="GtkStack">
+ <template class="PlaylistsView" parent="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkBox" id="_main_container">
diff --git a/gnomemusic/views/playlistsview.py b/gnomemusic/views/playlistsview.py
index 58906280..5b8f0b1d 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -32,7 +32,7 @@ from gnomemusic.widgets.playlisttile import PlaylistTile
@Gtk.Template(resource_path="/org/gnome/Music/ui/PlaylistsView.ui")
-class PlaylistsView(Gtk.Stack):
+class PlaylistsView(Gtk.Box):
"""Main view for playlists"""
__gtype_name__ = "PlaylistsView"
@@ -48,7 +48,7 @@ class PlaylistsView(Gtk.Stack):
:param GtkApplication application: The application object
"""
- super().__init__(transition_type=Gtk.StackTransitionType.CROSSFADE)
+ super().__init__()
self.props.name = "playlists"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]