Skip to content

Commit 1493c4b

Browse files
committed
Fix popup menu position + new menu icon
1 parent 71634fe commit 1493c4b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lLyrics/lLyrics.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def init_sidebar(self):
282282

283283
# menu without toolbar
284284
icon_factory = Gtk.IconFactory()
285-
pxbf = GdkPixbuf.Pixbuf.new_from_file(os.path.dirname(__file__) + "/menu-arrow.png")
285+
pxbf = GdkPixbuf.Pixbuf.new_from_file(os.path.dirname(__file__) + "/menu-icon.png")
286286
icon_factory.add("llyrics_menu", Gtk.IconSet.new_from_pixbuf(pxbf))
287287
icon_factory.add_default()
288288

@@ -424,8 +424,7 @@ def set_radio_menu_item_active(self, itemlabel):
424424
break
425425

426426
def popup_menu(self, widget, event, menu):
427-
menu.popup(None, None, lambda x, y: (event.x_root + event.x, event.y_root + event.y, True), None, event.button,
428-
event.time)
427+
menu.popup(None, widget, None, None, event.button, event.time)
429428

430429
def toggle_visibility(self, action, param=None, data=None):
431430
action = self.toggle_action_group.get_action('ToggleLyricSideBar')

lLyrics/menu-arrow.png

-1.66 KB
Binary file not shown.

lLyrics/menu-icon.png

740 Bytes
Loading

0 commit comments

Comments
 (0)