[dots/remove-assistant: 34/38] Added an about dialog
- From: Fernando Herrera de las Heras <fherrera src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots/remove-assistant: 34/38] Added an about dialog
- Date: Thu, 15 Jul 2010 21:09:50 +0000 (UTC)
commit 9e50873c6eafba92a932e770da3bd568ad9dcaf5
Author: Fernando Herrera <fherrera onirica com>
Date: Wed Jul 14 22:31:41 2010 +0200
Added an about dialog
TODO | 1 -
data/app_window.xml | 7 ++++++-
dots/app_window.py | 12 ++++++++++++
3 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/TODO b/TODO
index d22a64a..fbdf21c 100644
--- a/TODO
+++ b/TODO
@@ -3,6 +3,5 @@
- Edit the text
- .desktop file
- basic packaging
-- About dialog
- Docs
diff --git a/data/app_window.xml b/data/app_window.xml
index 182b1fd..1766b07 100644
--- a/data/app_window.xml
+++ b/data/app_window.xml
@@ -190,7 +190,7 @@
<property name="visible">True</property>
<child>
<object class="GtkImageMenuItem" id="imagemenuitem10">
- <property name="label">gtk-about</property>
+ <property name="related_action">action_about</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
@@ -311,4 +311,9 @@
<property name="sensitive">False</property>
<signal name="activate" handler="_onPrint" swapped="no"/>
</object>
+ <object class="GtkAction" id="action_about">
+ <property name="stock_id">gtk-about</property>
+ <signal name="activate" handler="_onAbout" swapped="no"/>
+ </object>
+
</interface>
diff --git a/dots/app_window.py b/dots/app_window.py
index f31811b..a4cb5e4 100644
--- a/dots/app_window.py
+++ b/dots/app_window.py
@@ -291,6 +291,18 @@ class AppWindow(object):
job.send(self._printJobSent, tmpfile.name)
dialog.destroy()
+ def _onAbout(self, action):
+ about = gtk.AboutDialog()
+ about.set_name ("dots")
+ about.set_comments(_("A Braille translator for GNOME"))
+ about.set_license("GPLv3")
+ about.set_authors(["Eitan Isaacson", "Fernando Herrera <fherrera onirica com>"])
+ about.set_copyright("(C) 2009 Eitan Isaacson\n(C) 2010 Consorcio Fernando de los RÃos")
+ about.set_website("http://live.gnome.org/Dots")
+ about.set_website_label("Dots website")
+ about.run()
+ about.destroy()
+
def addDocument(self, document):
container = self.main_xml.get_object('main_alignment')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]