summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-12-29 19:04:31 +0100
committerGuillaume Seguin <guillaume@segu.in>2007-12-29 19:04:31 +0100
commit3c25809ebe30dbc0f7baf5072850666c301e52cd (patch)
tree1d51b5fe567c3221a37624440320942c781e9ee0
parent5a3758d7176fefb085ab692f88dc036daaa7dc13 (diff)
downloadgnome-about-3c25809ebe30dbc0f7baf5072850666c301e52cd.tar.gz
gnome-about-3c25809ebe30dbc0f7baf5072850666c301e52cd.tar.bz2
* Restrict mirror effect to X11 platform
-rwxr-xr-xgnome-about.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnome-about.py b/gnome-about.py
index 0252868..297b2ec 100755
--- a/gnome-about.py
+++ b/gnome-about.py
@@ -1130,10 +1130,13 @@ contributors list) correctly positionned and sized.'''
-1, CONTRIBUTOR_DELAY, "<b>%s</b>")
by_label.connect ("button-press-event", label.on_button_press)
label.show_all ()
- widget = GtkMirroredWidget (label)
alignment = gtk.Alignment (0.5, 0.5)
alignment.set_padding (10, 10, 0, 0)
- alignment.add (widget)
+ if hasattr (gtk.gdk, "x11_get_default_screen"):
+ widget = GtkMirroredWidget (label)
+ alignment.add (widget)
+ else:
+ alignment.add (label)
box = gtk.EventBox ()
box.add (alignment)
box.connect ("button-press-event", label.on_button_press)