summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-01-03 00:21:59 +0100
committerGuillaume Seguin <guillaume@segu.in>2008-01-03 00:21:59 +0100
commit0ab97cf8fbd4230aa1119adc9d36cdbe2adfde9e (patch)
tree14ac7943d5ebf2df34eec3d2e3b50a1da78f2670
parentc149bf6e7030df4627c995a2f67ae276af9f8719 (diff)
downloadgnome-about-0ab97cf8fbd4230aa1119adc9d36cdbe2adfde9e.tar.gz
gnome-about-0ab97cf8fbd4230aa1119adc9d36cdbe2adfde9e.tar.bz2
* Make app crashproof against the gnome-python popt bug fixed in 2.21HEADmaster
-rwxr-xr-xgnome-about.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnome-about.py b/gnome-about.py
index 4414a90..2e89287 100755
--- a/gnome-about.py
+++ b/gnome-about.py
@@ -1245,8 +1245,12 @@ contributors list) correctly positionned and sized.'''
gtk.main_quit ()
if __name__ == "__main__":
+ if gnome.gnome_python_version < (2, 21, 0):
+ shortarg = "v"
+ else:
+ shortarg = ""
popt_table = [
- ("gnome-version", "", None, None, 0,
+ ("gnome-version", shortarg, None, None, 0,
_("Display information on this GNOME version"), "")
]
program = gnome.program_init ("gnome-about", VERSION,