[pygobject/pygobject-2-28] [gi] Respect the MessageType for Gtk.MessageDialog
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-2-28] [gi] Respect the MessageType for Gtk.MessageDialog
- Date: Wed, 16 Mar 2011 09:23:55 +0000 (UTC)
commit adb6f0320bed9a00a96c99424d4982199dc85af2
Author: Martin Pitt <martin pitt ubuntu com>
Date: Wed Mar 16 10:22:35 2011 +0100
[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!
gi/overrides/Gtk.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 07b9867..e8e7592 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]