[gnome-music/wip/mschraal/gtk4: 72/90] playlistdialog: Fix visibility



commit f66238990e7a3a7e55e201ec9f4460c4ba973c1b
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun May 3 15:47:23 2020 +0200

    playlistdialog: Fix visibility

 data/ui/PlaylistDialog.ui            | 3 ---
 gnomemusic/widgets/playlistdialog.py | 2 --
 2 files changed, 5 deletions(-)
---
diff --git a/data/ui/PlaylistDialog.ui b/data/ui/PlaylistDialog.ui
index 7db9a5ee..2f8e47a6 100644
--- a/data/ui/PlaylistDialog.ui
+++ b/data/ui/PlaylistDialog.ui
@@ -9,7 +9,6 @@
     <property name="destroy_with_parent">True</property>
     <child internal-child="content_area">
       <object class="GtkBox" id="dialog-vbox">
-        <property name="visible">False</property>
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <child>
@@ -20,7 +19,6 @@
             <property name="transition_duration">250</property>
             <child>
               <object class="GtkBox" id="_empty_box">
-                <property name="visible">False</property>
                 <property name="can_focus">False</property>
                 <property name="orientation">vertical</property>
                 <child>
@@ -96,7 +94,6 @@
               <object class="GtkStackPage">
                 <property name="child">
                   <object class="GtkBox" id="_normal_box">
-                    <property name="visible">False</property>
                     <property name="can_focus">False</property>
                     <property name="orientation">vertical</property>
                     <child>
diff --git a/gnomemusic/widgets/playlistdialog.py b/gnomemusic/widgets/playlistdialog.py
index 2c67defb..93d3fcc7 100644
--- a/gnomemusic/widgets/playlistdialog.py
+++ b/gnomemusic/widgets/playlistdialog.py
@@ -72,12 +72,10 @@ class PlaylistDialog(Gtk.Dialog):
 
     def _set_view(self):
         if self._user_playlists_available:
-            self._normal_box.show()
             self._add_playlist_stack.props.visible_child = self._normal_box
             self._add_playlist_button = self._new_playlist_button
             self._add_playlist_entry = self._new_playlist_entry
         else:
-            self._empty_box.show()
             self._add_playlist_stack.props.visible_child = self._empty_box
             self._add_playlist_button = self._first_playlist_button
             self._add_playlist_entry = self._first_playlist_entry


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]