aboutsummaryrefslogtreecommitdiff
path: root/src/prepaid-manager-applet.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-06-08 21:47:00 +0200
committerGuido Günther <agx@sigxcpu.org>2011-06-08 22:32:39 +0200
commit1d6e7fb4c6167904e260798ab39bee255f677dec (patch)
treecc6596eaf220b45be4a125e0ac47969fa3d3383e /src/prepaid-manager-applet.py
parent5f47e032fe2b2e8f69fe623e0e25b8e45bb3950a (diff)
Add an about dialog
Diffstat (limited to 'src/prepaid-manager-applet.py')
-rwxr-xr-xsrc/prepaid-manager-applet.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/prepaid-manager-applet.py b/src/prepaid-manager-applet.py
index 77de3ed..bf5ab8e 100755
--- a/src/prepaid-manager-applet.py
+++ b/src/prepaid-manager-applet.py
@@ -284,10 +284,22 @@ class PPMObject(object):
# View
class PPMDialog(GObject.GObject, PPMObject):
+ def _init_about_dialog(self):
+ self.about_dialog = Gtk.AboutDialog(
+ authors = ["Guido Günther <agx@sigxcpu.org>"],
+ program_name = "GNOME Prepaid Manager",
+ website = "https://honk.sigxcpu.org/piki/projects/ppm/",
+ website_label = _("Website"),
+ comments = _("Manage balance of prepaid GSM SIM cards"),
+ wrap_license = True,
+ version = ppm.version,
+ license_type = Gtk.License.GPL_3_0)
+
def _init_subdialogs(self):
self.provider_info_missing_dialog = PPMProviderInfoMissingDialog(self)
self.provider_assistant = PPMProviderAssistant(self)
self.modem_response = PPMModemResponse(self)
+ self._init_about_dialog()
def _setup_ui(self):
self.dialog = self.builder.get_object("ppm_dialog")
@@ -325,6 +337,10 @@ class PPMDialog(GObject.GObject, PPMObject):
self.clear_top_up_information()
self.controller.top_up_balance()
+ def on_about_activated(self, dummy):
+ self.about_dialog.run()
+ self.about_dialog.hide()
+
def on_balance_info_renew_clicked(self, dummy):
self.controller.fetch_balance()