Philipp Hörist pushed to branch gtk4 at gajim / gajim
Commits:
04756612 by Philipp Hörist at 2024-11-06T21:33:14+01:00
cq: Fix some formatting issues
- - - - -
4 changed files:
- gajim/common/jingle_ft.py
- gajim/gtk/profile.py
- gajim/gtk/roster.py
- gajim/gtk/util.py
Changes:
=====================================
gajim/common/jingle_ft.py
=====================================
@@ -23,6 +23,7 @@
from gajim.common import app
from gajim.common import helpers
+
# from gajim.common.events import FileRequestReceivedEvent
from gajim.common.file_props import FileProp
from gajim.common.file_props import FilesProp
=====================================
gajim/gtk/profile.py
=====================================
@@ -249,9 +249,7 @@ def _on_cancel_clicked(self, _button: Gtk.Button) -> None:
self._ui.nickname_entry.set_sensitive(False)
self._ui.avatar_image.set_from_paintable(self._current_avatar)
self._ui.nickname_entry.set_text(app.nicks[self.account])
- self._vcard_grid.set_vcard(
- self._current_vcard.copy()
- ) # pyright: ignore # noqa: E501
+ self._vcard_grid.set_vcard(self._current_vcard.copy()) # pyright:
ignore
self._new_avatar = False
def _on_back_clicked(self, *args: Any) -> None:
@@ -392,9 +390,9 @@ def _on_update_avatar(self, _button: Gtk.Button) -> None:
return
self._new_avatar = Avatar()
- self._new_avatar.add_image_source(
+ self._new_avatar.add_image_source( # pyright: ignore
data, "image/png", height, width
- ) # pyright: ignore # noqa: E501
+ )
scale = self.get_scale_factor()
surface = app.app.avatar_storage.surface_from_filename(
=====================================
gajim/gtk/roster.py
=====================================
@@ -743,7 +743,6 @@ def do_unroot(self) -> None:
# Set dummy method, otherwise store will not get destroyed
self._store.set_sort_func(Column.TEXT, self._dummy_tree_compare)
self._store.clear()
- self._roster_tooltip.destroy()
Gtk.ScrolledWindow.do_unroot(self)
del self._roster
del self._store
=====================================
gajim/gtk/util.py
=====================================
@@ -86,8 +86,8 @@ def load_icon_surface(
icon_theme = get_icon_theme()
icon = icon_theme.lookup_icon(
- icon_name, None, size, scale, Gtk.TextDirection.NONE, 0
- ) # pyright: ignore
+ icon_name, None, size, scale, Gtk.TextDirection.NONE, 0 # pyright:
ignore
+ )
snapshot = Gtk.Snapshot()
icon.snapshot(snapshot, size, size)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/047566124f77f0951977097e37579ce80ba9308b
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/047566124f77f0951977097e37579ce80ba9308b
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]