[gnome-music/wip/jfelder/playlist-improvements: 65/67] playlistcontrols: Display the menu button below the headers
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/playlist-improvements: 65/67] playlistcontrols: Display the menu button below the headers
- Date: Thu, 15 Apr 2021 13:12:36 +0000 (UTC)
commit 3b9a2af5354fcddb99be45d93573e56c8d7b809e
Author: Jean Felder <jfelder src gnome org>
Date: Thu Jan 28 01:28:33 2021 +0100
playlistcontrols: Display the menu button below the headers
Related: #438
data/ui/PlaylistControls.ui | 25 +++++--------------------
gnomemusic/widgets/playlistcontrols.py | 2 +-
2 files changed, 6 insertions(+), 21 deletions(-)
---
diff --git a/data/ui/PlaylistControls.ui b/data/ui/PlaylistControls.ui
index 6402f548d..ba368efaa 100644
--- a/data/ui/PlaylistControls.ui
+++ b/data/ui/PlaylistControls.ui
@@ -22,7 +22,8 @@
<property name="icon_name">view-more-symbolic</property>
<property name="icon_size">1</property>
</object>
- <template class="PlaylistControls" parent="GtkGrid">
+ <template class="PlaylistControls" parent="GtkBox">
+ <property name="orientation">vertical</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin-bottom">18</property>
@@ -86,12 +87,6 @@
</packing>
</child>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="_songs_count_label">
@@ -103,36 +98,26 @@
<class name="dim-label"/>
</style>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
</child>
<child>
<object class="GtkMenuButton" id="_menubutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="halign">end</property>
+ <property name="halign">start</property>
<property name="valign">center</property>
<property name="focus_on_click">False</property>
<property name="menu-model">playlistMenu</property>
<property name="direction">none</property>
<property name="use_popover">True</property>
<property name="image">_view_more_image</property>
+ <property name="margin-top">18</property>
+ <property name="margin-bottom">8</property>
<style>
<class name="image-button"/>
<class name="circular"/>
</style>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">2</property>
- </packing>
</child>
</template>
<object class="GtkEventControllerKey" id="_rename_controller">
diff --git a/gnomemusic/widgets/playlistcontrols.py b/gnomemusic/widgets/playlistcontrols.py
index 9d5b9a821..3935edec4 100644
--- a/gnomemusic/widgets/playlistcontrols.py
+++ b/gnomemusic/widgets/playlistcontrols.py
@@ -31,7 +31,7 @@ from gnomemusic.widgets.notificationspopup import PlaylistNotification
@Gtk.Template(resource_path='/org/gnome/Music/ui/PlaylistControls.ui')
-class PlaylistControls(Gtk.Grid):
+class PlaylistControls(Gtk.Box):
"""Widget holding the playlist controls"""
__gtype_name__ = "PlaylistControls"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]