Daniel Brötzmann pushed to branch gtk4 at gajim / gajim
Commits:
9056e23a by wurstsalat at 2024-10-20T11:44:36+02:00
refactor: GajimPopover: Init correct widget
- - - - -
1 changed file:
- gajim/gtk/util.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
@@ -21,10 +21,11 @@
from re import Match
import cairo
-from gi.repository import GObject, Gdk
+from gi.repository import Gdk
from gi.repository import GdkPixbuf
from gi.repository import Gio
from gi.repository import GLib
+from gi.repository import GObject
from gi.repository import Gtk
from gi.repository import GtkSource
from gi.repository import Pango
@@ -996,12 +997,14 @@ def __init__(self,
class GajimPopover(Gtk.PopoverMenu):
__gtype_name__ = 'GajimPopover'
- def __init__(self,
- menu: Gio.MenuModel | None = None,
- position: Gtk.PositionType = Gtk.PositionType.RIGHT,
- event: Any | None = None) -> None:
+ def __init__(
+ self,
+ menu: Gio.MenuModel | None = None,
+ position: Gtk.PositionType = Gtk.PositionType.RIGHT,
+ event: Any | None = None
+ ) -> None:
- Gtk.Popover.__init__(self, autohide=True)
+ Gtk.PopoverMenu.__init__(self, autohide=True)
if menu is not None:
self.set_menu_model(menu)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9056e23af25be3ddc34d8d19c2ea4ee3785fed8a
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9056e23af25be3ddc34d8d19c2ea4ee3785fed8a
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]