Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning on startup #691

Open
kneekoo opened this issue Jul 15, 2021 · 3 comments
Open

Deprecation warning on startup #691

kneekoo opened this issue Jul 15, 2021 · 3 comments

Comments

@kneekoo
Copy link

kneekoo commented Jul 15, 2021

Describe the bug
A few deprecation notices, just something for the to do list.

Terminal output

nicu@nas:~$ mintupdate
nicu@nas:~$ /usr/lib/linuxmint/mintUpdate/mintUpdate.py:1274: DeprecationWarning: Gdk.threads_init is deprecated
  Gdk.threads_init()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1422: DeprecationWarning: Gtk.ImageMenuItem.set_image is deprecated
  menuItem3.set_image(image)
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:722: DeprecationWarning: Gdk.threads_enter is deprecated
  Gdk.threads_enter()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:729: DeprecationWarning: Gdk.threads_leave is deprecated
  Gdk.threads_leave()

To Reproduce
Start mintUpdate from the terminal.

Expected behavior
No warnings.

Distribution: Linux Mint 20.2

Software version:
mintUpdate 5.7.8

@kneekoo kneekoo added the BUG label Jul 15, 2021
@xenopeek xenopeek removed the BUG label Jul 15, 2021
@xenopeek
Copy link

These warnings may become relevant with Linux Mint 21 development cycle, when moving to a newer package base that may have a newer Gdk version. They are not bugs; the program is not doing something differently from what it is designed to do.

@kneekoo
Copy link
Author

kneekoo commented Jul 15, 2021

gdk_threads_init(), gdk-threads-enter(), gdk_threads_leave():

gdk_threads_init/gdk_threads_enter/gdk_threads_leave has been deprecated since version 3.6 and should not be used in newly-written code.
All GDK and GTK+ calls should be made from the main thread

What's really weird is that the stable Gtk documentation doesn't mention the deprecation of Gtk.ImageMenuItem.set_image. The only place I found mentioning this is the Vala documentation:

Warning: ImageMenuItem is deprecated since 3.10.

So it will matter in the future, but the they don't say when they'll remove these. Maybe that's because they plan keeping them for longer.

@timur-g
Copy link

timur-g commented Jun 11, 2024

Still in Mint 21.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants