summaryrefslogtreecommitdiff
path: root/portato/gui/windows/about.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-10-24 00:10:31 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-10-24 00:10:31 +0200
commitb243b009bb094c06ca9d60e81cf4700e48dc2947 (patch)
tree70413ee919d642770eb6275158a25f605f3a2d08 /portato/gui/windows/about.py
parentc9190e0f9e1969607be5ddf2c59cd2d75b12bdc0 (diff)
downloadportato-b243b009bb094c06ca9d60e81cf4700e48dc2947.tar.gz
portato-b243b009bb094c06ca9d60e81cf4700e48dc2947.tar.bz2
portato-b243b009bb094c06ca9d60e81cf4700e48dc2947.zip
Adding revison info to version output.
As the revision is no longer encoded in the version, it needs to be printed whereever it is useful. This commit adds it to the 'About' window and to the exception infos.
Diffstat (limited to 'portato/gui/windows/about.py')
-rw-r--r--portato/gui/windows/about.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/portato/gui/windows/about.py b/portato/gui/windows/about.py
index 937ed8b..6c6fec5 100644
--- a/portato/gui/windows/about.py
+++ b/portato/gui/windows/about.py
@@ -15,7 +15,7 @@ from __future__ import absolute_import
import gtk
from .basic import AbstractDialog
-from ...constants import VERSION, APP_ICON
+from ...constants import VERSION, REVISION, APP_ICON
class AboutWindow (AbstractDialog):
"""A window showing the "about"-informations."""
@@ -30,5 +30,11 @@ class AboutWindow (AbstractDialog):
self.window.set_version(VERSION)
self.window.set_logo(img.get_pixbuf())
+ if REVISION:
+ gitlabel = self.tree.get_widget("gitLabel")
+ gitlabel.set_label(REVISION)
+ else:
+ self.tree.get_widget("gitHB").hide()
+
self.window.show_all()