elementary / granite

Library that extends GTK with common widgets and utilities
https://elementary.io
GNU Lesser General Public License v3.0
286 stars 60 forks source link

Replace Gtk.Widget.get_style_context deprecated in Gtk 4.10 #672

Closed ryonakano closed 11 months ago

ryonakano commented 11 months ago

It is deprecated in Gtk 4.10: https://valadoc.org/gtk4/Gtk.Widget.get_style_context.html

The alternative methods Gtk.Widget.add_css_class and Gtk.Widget.remove_css_class are available on any version of Gtk 4, so we don't need to change required version of gtk4 dependency here:

https://github.com/elementary/granite/blob/11b720ebc92b5776a367141e93d8c303e5c8813d/meson.build#L52