Philipp Hörist pushed to branch gtk4 at gajim / gajim


Commits:
ff7b7ea1 by Philipp Hörist at 2024-10-19T16:49:17+02:00
cfix: Pass correct window

- - - - -


4 changed files:

- gajim/gtk/accounts.py
- gajim/gtk/application.py
- gajim/gtk/main.py
- gajim/gtk/synchronize_accounts.py


Changes:

=====================================
gajim/gtk/accounts.py
=====================================
@@ -569,7 +569,7 @@ def _disable() -> None:
                  DialogButton.make('Remove',
                                    text=_('_Disable Account'),
                                    callback=_disable)],
-                transient_for=window).show()
+                transient_for=window.window).show()
             return Gdk.EVENT_STOP
 
         if state:


=====================================
gajim/gtk/application.py
=====================================
@@ -571,7 +571,7 @@ def disable_account(self, account: str) -> None:
             # dialog. It shows if the removal was successful.
             if type(win).__name__ == 'RemoveAccount':
                 continue
-            win.destroy()
+            win.close()
 
         CoreApplication.disable_account(self, account)
 


=====================================
gajim/gtk/main.py
=====================================
@@ -1413,7 +1413,7 @@ def _on_call_started(self, event: events.CallStarted) -> 
None:
         # Make sure there is only one window
         win = get_app_window('CallWindow')
         if win is not None:
-            win.destroy()
+            win.close()
         CallWindow(event.account, event.resource_jid)
 
     def _on_jingle_request(self, event: events.JingleRequestReceived) -> None:


=====================================
gajim/gtk/synchronize_accounts.py
=====================================
@@ -14,7 +14,6 @@
 
 from gajim.gtk.builder import get_builder
 from gajim.gtk.dialogs import ErrorDialog
-from gajim.gtk.util import get_app_window
 from gajim.gtk.widgets import GajimAppWindow
 
 
@@ -25,8 +24,7 @@ def __init__(self, account: str) -> None:
             name='SynchronizeAccounts',
             title=_('Synchronize Accounts'),
             default_width=400,
-            default_height=550,
-            transient_for=get_app_window('AccountsWindow')
+            default_height=550
         )
 
         self.account = account



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/ff7b7ea1977e6b32da3d97d03cbbfdb7b8ad9f5c

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/ff7b7ea1977e6b32da3d97d03cbbfdb7b8ad9f5c
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]

Reply via email to