[gnome-music/wip/jfelder/albumwidget-add-contextmenu: 2/4] songwidgetmenu: Display the menu at bottom
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/albumwidget-add-contextmenu: 2/4] songwidgetmenu: Display the menu at bottom
- Date: Sat, 7 Aug 2021 14:06:39 +0000 (UTC)
commit bc861d46dfe6e1d0a0616573edd74efce8d50d29
Author: Jean Felder <jfelder src gnome org>
Date: Sat Aug 7 16:02:13 2021 +0200
songwidgetmenu: Display the menu at bottom
SongWidgetMenu is used inside a button or as a context menu. In both
cases, it should be displayed down.
data/ui/SongWidgetMenu.ui | 1 +
gnomemusic/widgets/playlistswidget.py | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/ui/SongWidgetMenu.ui b/data/ui/SongWidgetMenu.ui
index 628f50dfd..8868176f2 100644
--- a/data/ui/SongWidgetMenu.ui
+++ b/data/ui/SongWidgetMenu.ui
@@ -2,6 +2,7 @@
<interface>
<template class="SongWidgetMenu" parent="GtkPopoverMenu">
<property name="modal">True</property>
+ <property name="position">bottom</property>
<property name="visible">False</property>
<child>
<object class="GtkBox">
diff --git a/gnomemusic/widgets/playlistswidget.py b/gnomemusic/widgets/playlistswidget.py
index f236872dd..2dab98dab 100644
--- a/gnomemusic/widgets/playlistswidget.py
+++ b/gnomemusic/widgets/playlistswidget.py
@@ -143,7 +143,6 @@ class PlaylistsWidget(Gtk.Box):
self._application, song_widget, current_playlist)
song_context_menu.props.relative_to = self._songs_list
song_context_menu.props.pointing_to = rect
- song_context_menu.props.position = Gtk.PositionType.BOTTOM
song_context_menu.popup()
def _on_play_playlist(self, menuitem, data=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]