Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: 2badeff8 by wurstsalat at 2024-09-11T22:37:05+02:00 refactor: GajimPopover: Make menu optional - - - - - 1 changed file: - gajim/gtk/util.py Changes: ===================================== gajim/gtk/util.py ===================================== @@ -980,14 +980,16 @@ def __init__(self, class GajimPopover(Gtk.Popover): def __init__(self, - menu: Gio.MenuModel, + menu: Gio.MenuModel | None = None, relative_to: Gtk.Widget | None = None, position: Gtk.PositionType = Gtk.PositionType.RIGHT, event: Gdk.EventButton | None = None) -> None: Gtk.Popover.__init__(self) - self.bind_model(menu) + if menu is not None: + self.bind_model(menu) + self.set_relative_to(relative_to) self.set_position(position) if event is not None: View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/2badeff8e4f5d5f81b70110a2b74b20e6258adfe -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/2badeff8e4f5d5f81b70110a2b74b20e6258adfe You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list -- commits@gajim.org To unsubscribe send an email to commits-le...@gajim.org