summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2011-03-16 10:22:35 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2011-03-16 10:23:47 +0100
commitadb6f0320bed9a00a96c99424d4982199dc85af2 (patch)
treea0b77a8e84548e0bcaa15ba7d791a6e7275af6f9
parent115c4750f071270b648218c9678931a65a4b3e3d (diff)
downloadpygobject-adb6f0320bed9a00a96c99424d4982199dc85af2.tar.gz
[gi] Respect the MessageType for Gtk.MessageDialog
Don't just ignore the type argument, actually pass it on. Thanks to Tualatrix Chou for spotting this!
-rw-r--r--gi/overrides/Gtk.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 07b98671..e8e75925 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -410,6 +410,7 @@ class MessageDialog(Gtk.MessageDialog, Dialog):
kwds['text'] = message_format
Gtk.MessageDialog.__init__(self,
_buttons_property=buttons,
+ message_type=type,
**kwds)
Dialog.__init__(self, parent=parent, flags=flags)