[pybliographer/gtk3: 4/25] document: Port about dialog to gtk+3
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pybliographer/gtk3: 4/25] document: Port about dialog to gtk+3
- Date: Tue, 30 Jul 2013 23:16:34 +0000 (UTC)
commit a3d6a3041c2e5b8207c59a5197c2b78c102c297a
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Tue May 28 17:15:13 2013 -0700
document: Port about dialog to gtk+3
Signed-off-by: Germán Poo-Caamaño <gpoo gnome org>
Pyblio/GnomeUI/Document.py | 51 +++++++++++++++++++++----------------------
1 files changed, 25 insertions(+), 26 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Document.py b/Pyblio/GnomeUI/Document.py
index e2728d9..e6d35cd 100644
--- a/Pyblio/GnomeUI/Document.py
+++ b/Pyblio/GnomeUI/Document.py
@@ -25,9 +25,7 @@
from gi.repository import GObject
-# from gnome import ui
from gettext import gettext as _
-# import gnome
from gi.repository import Gtk, Gdk
from Pyblio.GnomeUI import Editor, Entry, FileSelector, Format
@@ -1234,31 +1232,32 @@ class Document (Connector.Publisher):
self.w.error (_("Can't display documentation:\n%s") % msg)
return
-
+
def about (self, *arg):
+ authors = ['Hervé Dréau',
+ 'Frédéric Gobry',
+ 'Zoltán Kóta',
+ 'Travis Oliphant',
+ 'Darrell Rudmann',
+ 'Peter Schulte-Stracke',
+ 'John Vu',
+ 'Germán Poo-Caamaño']
+ documentors = ['Yuri Bongiorno',
+ 'Frédéric Gobry',
+ 'Zoltán Kóta']
+ translators = _('GNOME Translation Team')
- about = ui.About ('Pybliographic',
- version.version,
- _("This program is copyrighted under the GNU GPL"),
- _("GNOME interface to the Pybliographer system."),
- ['Hervé Dréau',
- 'Frédéric Gobry',
- 'Zoltán Kóta',
- 'Travis Oliphant',
- 'Darrell Rudmann',
- 'Peter Schulte-Stracke',
- 'John Vu'],
- ['Yuri Bongiorno',
- 'Frédéric Gobry',
- 'Zoltán Kóta'],
- _('GNOME Translation Team'))
-
- about.set_transient_for (self.w)
-
- link = ui.HRef ('http://www.pybliographer.org/',
- _("Pybliographer Home Page"))
- link.show ()
- about.vbox.pack_start (link)
+ about = Gtk.AboutDialog(
+ parent=self.w,
+ program_name='Pybliographic',
+ version=version.version,
+ website='http://www.pybliographer.org/',
+ comments=_("GNOME interface to the Pybliographer system."),
+ license_type=Gtk.License.GPL_2_0,
+ authors=authors,
+ documenters=documentors,
+ translator_credits=translators)
+
+ about.connect('response', lambda w, b: w.destroy())
about.show()
- return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]