Fix DeprecationWarning: Removed Gdk.threads_enter/leave calls#419
Fix DeprecationWarning: Removed Gdk.threads_enter/leave calls#419dk8877 wants to merge 1 commit intoOpenPrinting:masterfrom
Conversation
|
Hi @dk8877 , thank you for the PR! I see you commented out the threads methods - can you remove them if they are not needed? |
|
ohk i will do it soon |
5ecccf5 to
3bbeaaa
Compare
|
Done! I have removed the ines @zdohnal |
zdohnal
left a comment
There was a problem hiding this comment.
There were some issues with indentation and some lines are not needed anymore, would you mind looking into it?
3bbeaaa to
6ecd735
Compare
|
@zdohnal Thanks for the review! I have addressed all the points: |
zdohnal
left a comment
There was a problem hiding this comment.
There are some unnecessary changes in indentation and one try: block was removed incorrectly (we catch exception there, try: will stay) - please look into it.
Thank you in advance!
6ecd735 to
c70217c
Compare
|
@zdohnal Thanks for the review! I have fixed the issues. You can review it now. |
zdohnal
left a comment
There was a problem hiding this comment.
Hi,
there is one badly indented block - would you mind fixing it?
Thank you in advance!
c70217c to
3516a34
Compare
3516a34 to
5869b58
Compare
|
Hi, @zdohnal Thanks for the update, I have resolved the issue. You can review it now. |
zdohnal
left a comment
There was a problem hiding this comment.
Unfortunately in opreq_id_search_done there is the same mistake + removed valid code.
What we need there is to remove Gdk.threads_enter (), a then the first 'try:+finally:' construct - because it is there only for calling Gdk.threads_leave () in finally. The removal of those lines requires us to move the code which was in try:+finally: scope one level up (4 spaces to the left).
|
This is the code change how it probably should look like in opreq_id_search_done. The current MR moves the code out of the method and removes unneeded lines. |
Removes the deprecated Gdk.threads_enter() and Gdk.threads_leave() calls.
Modern Gdk handles thread locking automatically, so these manual locks are no longer needed and cause DeprecationWarnings.
Tested locally on Fedora; the application launches correctly and the specific DeprecationWarning is gone.
Closes #126