#!/usr/bin/python3
#--------------------#
# AboutDialog dialog #
#--------------------#
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk,GdkPixbuf

class AboutDialog(Gtk.AboutDialog):
    def __init__(self):
        logo = GdkPixbuf.Pixbuf.new_from_file_at_size("/usr/share/cpunotify/cpunotify.png", 48, 48)

        Gtk.AboutDialog.__init__(self)
        self.set_version("Version 1.0.3")
        self.set_comments("CPUnotify alerts operational cpu spikes above 100%\n\nCopyright © 2026\nPCLinuxOS Community Development")
        self.set_website("http://www.pclosdebian.com/")
        self.set_authors(["Ken Dotson\nCopyright © 2026\n\nThis program is free software: you can redistribute it\nand/or modify it under the terms of the GNU General\nPublic License as published by the Free Software\nFoundation, either version 3 of the License, or (at\nyour option) any later version"])
        self.set_icon_from_file("/usr/share/cpunotify/cpunotify.png")
        self.set_logo(logo)
        self.connect("response", self.on_response)

    def on_response(self, dialog, response):
        self.destroy()

aboutdialog = AboutDialog()
aboutdialog.run()






