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

Many deprecation warnings when running Magnus #13

Open
kankaristo opened this issue Dec 7, 2020 · 1 comment
Open

Many deprecation warnings when running Magnus #13

kankaristo opened this issue Dec 7, 2020 · 1 comment

Comments

@kankaristo
Copy link

Magnus seems to be using a few deprecated functions. I'm getting the following messages:

/usr/bin/magnus:107: DeprecationWarning: Gdk.Display.get_device_manager is deprecated
  devman = self.w.get_screen().get_display().get_device_manager()
/usr/bin/magnus:108: DeprecationWarning: Gdk.DeviceManager.get_client_pointer is deprecated
  self.pointer = devman.get_client_pointer()
/usr/bin/magnus:294: DeprecationWarning: Gdk.Screen.get_width is deprecated
  sw = float(scr.get_width())
/usr/bin/magnus:295: DeprecationWarning: Gdk.Screen.get_height is deprecated
  sh = float(scr.get_height())
/usr/bin/magnus:233: DeprecationWarning: Gdk.Display.get_pointer is deprecated
  (screen, x, y, modifier) = display.get_pointer()

I'm using the latest version of Magnus (1.0.3) on Ubuntu 20.10 (with Gnome Shell 3.38.1, if that makes a difference).

@stuartlangridge
Copy link
Owner

These are deprecated, but I don't think I want to rebuild Magnus to use Gdk.Seat and so on quite yet, because then it'll depend on newer Gtk, which might not be ideal. @flexiondotorg can you comment on whether this would be a problem for Ubuntu MATE and snap users? If it isn't a problem then changing things to use Seat is of course doable.

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

2 participants