[meld] misc: Guard against dialog props insanity
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] misc: Guard against dialog props insanity
- Date: Fri, 26 Sep 2014 20:55:46 +0000 (UTC)
commit 6e1b0653d33d72640126a4c08fcb95ce998dd0a7
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Sep 27 06:53:31 2014 +1000
misc: Guard against dialog props insanity
meld/misc.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/meld/misc.py b/meld/misc.py
index 3a48f72..5bed516 100644
--- a/meld/misc.py
+++ b/meld/misc.py
@@ -117,8 +117,13 @@ def run_dialog( text, parent=None, messagetype=Gtk.MessageType.WARNING, buttonst
d.vbox.set_spacing(12)
hbox = d.vbox.get_children()[0]
hbox.set_spacing(12)
- d.props.image.set_alignment(0.5, 0)
- d.props.image.set_padding(12, 12)
+ try:
+ d.props.image.set_alignment(0.5, 0)
+ d.props.image.set_padding(12, 12)
+ except AttributeError:
+ # FIXME: This is ridiculous. Possibly distribution-specific patches,
+ # or just... bad things. This needs to go away.
+ pass
ret = d.run()
d.destroy()
return ret
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]