Commit f4f0bacc authored by Colomban Wendling's avatar Colomban Wendling

Make AppWindow a Gtk.ApplicationWindow

parent 2b32a300
...@@ -110,12 +110,12 @@ class CellRendererColor(Gtk.CellRenderer): ...@@ -110,12 +110,12 @@ class CellRendererColor(Gtk.CellRenderer):
cr.stroke() cr.stroke()
class AppWindow(Gtk.Window): class AppWindow(Gtk.ApplicationWindow):
ROW_KEY = 0 ROW_KEY = 0
ROW_COLOR = 1 ROW_COLOR = 1
def __init__(self): def __init__(self, app):
Gtk.Window.__init__(self) Gtk.ApplicationWindow.__init__(self, application=app)
self.set_default_size(400, 300) self.set_default_size(400, 300)
self.set_title("GTK3 Theme Pref") self.set_title("GTK3 Theme Pref")
self.set_icon_name("gtk-preferences") self.set_icon_name("gtk-preferences")
...@@ -234,7 +234,7 @@ class App(Gtk.Application): ...@@ -234,7 +234,7 @@ class App(Gtk.Application):
Gtk.Application.__init__(self, application_id="apps.gtk_theme_prefs") Gtk.Application.__init__(self, application_id="apps.gtk_theme_prefs")
def do_activate(self): def do_activate(self):
window = AppWindow() window = AppWindow(self)
window.show_all() window.show_all()
self.add_window(window) self.add_window(window)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment