[gnome-sudoku/gnome-3-12] Fix a thing
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku/gnome-3-12] Fix a thing
- Date: Sun, 29 Jun 2014 20:42:53 +0000 (UTC)
commit 9bbb9e9dac28adaeebb224f630cc9b7d59a4d9d4
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Jun 29 15:41:58 2014 -0500
Fix a thing
Pretty sure this doesn't affect anything anymore, but I fixed it.
** (gnome-sudoku:23210): WARNING **: expected enumeration type
GtkWindowType, but got GtkMessageType instead
/home/mcatanzaro/jhbuild/install/lib/python3.3/site-packages/gnome_sudoku/gtk_goodies/dialog_extras.py:145:
Warning: value "((GtkWindowType) 2)" of type 'GtkWindowType' is invalid
or out of range for property 'type' of type 'GtkWindowType'
GObject.GObject.__init__(self, *args, **kwargs)
src/lib/gtk_goodies/dialog_extras.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/gtk_goodies/dialog_extras.py b/src/lib/gtk_goodies/dialog_extras.py
index e9128be..247c470 100644
--- a/src/lib/gtk_goodies/dialog_extras.py
+++ b/src/lib/gtk_goodies/dialog_extras.py
@@ -139,7 +139,7 @@ class MessageDialog (Gtk.MessageDialog, ModalDialog):
ModalDialog.__init__(self, title=title, default=default, okay=okay, cancel=cancel, label=label,
sublabel=sublabel, parent=parent, expander=expander)
def setup_dialog (self, *args, **kwargs):
- kwargs['type']=self.message_type
+ kwargs['message-type']=self.message_type
if 'title' in kwargs:
del kwargs['title']
GObject.GObject.__init__(self, *args, **kwargs)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]