diff --git a/data/ui/about_dialog.ui.in b/data/ui/about_dialog.ui.in
index 0222e16..ec92a5e 100644
--- a/data/ui/about_dialog.ui.in
+++ b/data/ui/about_dialog.ui.in
@@ -2,7 +2,7 @@
-
+
+
diff --git a/src/Authenticator/application.py.in b/src/Authenticator/application.py.in
index a6cd886..6bdb69a 100644
--- a/src/Authenticator/application.py.in
+++ b/src/Authenticator/application.py.in
@@ -19,7 +19,7 @@
from gettext import gettext as _
from gi.repository import Gtk, GLib, Gio, Gdk, GObject
-from Authenticator.widgets import Window, WindowState, AboutDialog, import_json, export_json
+from Authenticator.widgets import Window, WindowState, import_json, export_json
from Authenticator.models import Database, Settings, Clipboard, Logger, Keyring
@@ -164,7 +164,9 @@ class Application(Gtk.Application):
"""
Shows about dialog
"""
- dialog = AboutDialog()
+ builder = Gtk.Builder()
+ builder.add_from_resource("/com/github/bilelmoussaoui/Authenticator/about_dialog.ui")
+ dialog = builder.get_object("about_dialog")
dialog.set_transient_for(Window.get_default())
dialog.run()
dialog.destroy()
diff --git a/src/Authenticator/widgets/__init__.py b/src/Authenticator/widgets/__init__.py
index 28edd6b..a6ee69f 100644
--- a/src/Authenticator/widgets/__init__.py
+++ b/src/Authenticator/widgets/__init__.py
@@ -16,7 +16,6 @@
You should have received a copy of the GNU General Public License
along with Authenticator. If not, see .
"""
-from .about import AboutDialog
from .accounts import AccountsList, AccountRow
from .window import Window, WindowState
from .settings import SettingsWindow
diff --git a/src/Authenticator/widgets/about.py b/src/Authenticator/widgets/about.py
deleted file mode 100644
index 304ff5e..0000000
--- a/src/Authenticator/widgets/about.py
+++ /dev/null
@@ -1,33 +0,0 @@
-"""
- Copyright © 2017 Bilal Elmoussaoui
-
- This file is part of Authenticator.
-
- Authenticator is free software: you can redistribute it and/or
- modify it under the terms of the GNU General Public License as published
- by the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- Authenticator is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with Authenticator. If not, see .
-"""
-from gi.repository import Gtk
-
-
-@Gtk.Template(resource_path='/com/github/bilelmoussaoui/Authenticator/about_dialog.ui')
-class AboutDialog(Gtk.AboutDialog):
- """
- AboutDialog Widget.
- """
- __gtype_name__ ="AboutDialog"
-
- def __init__(self):
- super(AboutDialog, self).__init__()
-
- def __repr__(self):
- return ''