Skip to content

Commit

Permalink
Merge pull request #1892 from proneon267/patch-7
Browse files Browse the repository at this point in the history
Corrected gtk backend implementation call for set_current_window.
  • Loading branch information
freakboy3742 authored Apr 24, 2023
2 parents b6a85fa + fec6a48 commit 207616f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/1892.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A bug in the gtk backend for `current_window` property was fixed.
2 changes: 1 addition & 1 deletion gtk/src/toga_gtk/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def get_current_window(self):
return self.native.get_active_window()._impl

def set_current_window(self, window):
window.native.present()
window._impl.native.present()

def enter_full_screen(self, windows):
for window in windows:
Expand Down

0 comments on commit 207616f

Please sign in to comment.