[pybliographer] Add logo to the About dialog



commit aec46c48a8213ab8520384ff2b361e6922a94831
Author: Zoltan Kota <zoltank gmail com>
Date:   Tue Oct 3 11:49:42 2017 +0200

    Add logo to the About dialog

 Pyblio/GnomeUI/Document.py          |    7 +++++--
 data/pixmaps/Makefile.am            |    6 +++---
 data/pixmaps/pybliographic-logo.png |  Bin 0 -> 12261 bytes
 3 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Document.py b/Pyblio/GnomeUI/Document.py
index f9ce177..7ef89a3 100644
--- a/Pyblio/GnomeUI/Document.py
+++ b/Pyblio/GnomeUI/Document.py
@@ -1224,7 +1224,9 @@ class Document (Connector.Publisher):
         return
     
     def about (self, *arg):
-        
+
+       pybliologo = gtk.gdk.pixbuf_new_from_file(
+                       os.path.join (version.pybdir, 'pixmaps', 'pybliographic-logo.png'))
         about = ui.About ('Pybliographic',
                           version.version,
                           _("This program is copyrighted under the GNU GPL"),
@@ -1239,7 +1241,8 @@ class Document (Connector.Publisher):
                           ['Yuri Bongiorno',
                            'Frédéric Gobry',
                            'Zoltán Kóta'],
-                          _('GNOME Translation Team'))
+                          _('GNOME Translation Team'),
+                          pybliologo)
 
         about.set_transient_for (self.w)
         
diff --git a/data/pixmaps/Makefile.am b/data/pixmaps/Makefile.am
index d14945e..b6a41ea 100644
--- a/data/pixmaps/Makefile.am
+++ b/data/pixmaps/Makefile.am
@@ -1,8 +1,8 @@
 pybdir = $(datadir)/$(PACKAGE)
 pixmapsdir = $(pybdir)/pixmaps
-pixmaps_DATA = pybliographic.png pybliographic-viewer.png
+pixmaps_DATA = pybliographic.png pybliographic-viewer.png pybliographic-logo.png
 
 EXTRA_DIST =   pybliographic.png               \
-               pybliographic-viewer.png
-
+               pybliographic-viewer.png        \
+               pybliographic-logo.png
 
diff --git a/data/pixmaps/pybliographic-logo.png b/data/pixmaps/pybliographic-logo.png
new file mode 100644
index 0000000..0f57f6f
Binary files /dev/null and b/data/pixmaps/pybliographic-logo.png differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]