#!/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/recordmydesktop/icons/rmd.png", 48, 48)

        Gtk.AboutDialog.__init__(self)
        self.set_version("Graphical frontend for recordmydesktop\nVersion 0.2.6")
        self.set_comments("Copyright © 2026 WTFPL")
        self.set_website("http://www.pclosdebian.com/")
        self.set_authors(["Ken Dotson\nCopyright © 2026 WTFPL"])
        self.set_icon_from_file("/usr/share/recordmydesktop/icons/rmd16.png")
        self.set_logo(logo)
        self.connect("response", self.on_response)

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

aboutdialog = AboutDialog()
aboutdialog.run()






