Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
bc3b02ba by wurstsalat at 2024-11-21T21:36:56+01:00
refactor: Flatpak: Remove GTK4 TODOs
- - - - -
3 changed files:
- gajim/gtk/avatar_selector.py
- gajim/gtk/chat_stack.py
- gajim/gtk/file_transfer_selector.py
Changes:
=====================================
gajim/gtk/avatar_selector.py
=====================================
@@ -66,12 +66,6 @@ def __init__(self) -> None:
self.add_css_class("avatar-selector")
- # TODO GTK4 test how Flatpak behaves
- # if app.is_flatpak():
- # target = DND_TARGET_FLATPAK
- # else:
- # target = DND_TARGET_URI_LIST
-
drop_target = Gtk.DropTarget.new(Gdk.FileList, Gdk.DragAction.COPY)
self._connect(drop_target, "accept", self._on_drop_accept)
self._connect(drop_target, "drop", self._on_file_drop)
=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -115,12 +115,6 @@ def __init__(self):
self._connect(drop_target, "leave", self._on_drag_leave)
overlay.add_controller(drop_target)
- # TODO GTK4 test how Flatpak behaves
- # if app.is_flatpak():
- # target = DND_TARGET_FLATPAK
- # else:
- # target = DND_TARGET_URI_LIST
-
self.add_named(overlay, "controls")
self._connect_actions()
=====================================
gajim/gtk/file_transfer_selector.py
=====================================
@@ -96,12 +96,6 @@ def __init__(self, contact: types.ChatContactT, method: str
| None = None) -> No
# 'Choose the device you would like to send the '
# 'files to.') % self._contact.name)
- # TODO GTK4 test how Flatpak behaves
- # if app.is_flatpak():
- # target = DND_TARGET_FLATPAK
- # else:
- # target = DND_TARGET_URI_LIST
-
drop_target = Gtk.DropTarget.new(Gdk.FileList, Gdk.DragAction.COPY)
self._connect(drop_target, "accept", self._on_drop_accept)
self._connect(drop_target, "drop", self._on_file_drop)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/bc3b02baa1b3253bc247f68209afc96783cc5fdb
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/bc3b02baa1b3253bc247f68209afc96783cc5fdb
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]