sudipshil9862 / fonts-compare

fonts rendering and comparing
GNU General Public License v2.0
5 stars 2 forks source link

Use Gtk.Window instead of Gtk.Dialog #57

Open sudipshil9862 opened 5 months ago

sudipshil9862 commented 5 months ago
fonts_compare.py:118: DeprecationWarning: Gtk.Dialog.get_widget_for_response is deprecated
  self.btn_ok = self.get_widget_for_response(Gtk.ResponseType.OK)
fonts_compare.py:120: DeprecationWarning: Gtk.Widget.get_style_context is deprecated
  self.btn_ok.get_style_context().add_class('suggested-action')
fonts_compare.py:120: DeprecationWarning: Gtk.StyleContext.add_class is deprecated
  self.btn_ok.get_style_context().add_class('suggested-action')
fonts_compare.py:122: DeprecationWarning: Gtk.Dialog.set_default_response is deprecated
  self.set_default_response(Gtk.ResponseType.OK)
fonts_compare.py:124: DeprecationWarning: Gtk.Dialog.get_content_area is deprecated
  content_area = self.get_content_area()
sudipshil9862 commented 5 months ago

Gtk.Dialog is deprecated https://docs.gtk.org/gtk4/class.Dialog.html I'll be using Gtk.Window instead of Gtk.Dialog