[pygtk] Fixed invocation of FileChooserDialog in print-editor demo



commit 5e4d735e8db6053cc8aa84e0cbaaf239754395a6
Author: Pietro Battiston <toobaz email it>
Date:   Thu Jul 16 19:13:19 2009 +0200

    Fixed invocation of FileChooserDialog in print-editor demo

 examples/pygtk-demo/demos/print_editor.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/pygtk-demo/demos/print_editor.py b/examples/pygtk-demo/demos/print_editor.py
index 7b7ae10..6ed7f8d 100644
--- a/examples/pygtk-demo/demos/print_editor.py
+++ b/examples/pygtk-demo/demos/print_editor.py
@@ -133,8 +133,8 @@ def save_file(save_filename):
 def do_save_as(action):
     dialog = gtk.FileChooserDialog("Select file",
                                    main_window,
-                                   (gtk.FILE_CHOOSER_ACTION_SAVE,
-                                    gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
+                                   gtk.FILE_CHOOSER_ACTION_SAVE,
+                                   (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
                                     gtk.STOCK_SAVE, gtk.RESPONSE_OK))
     dialog.set_default_response(gtk.RESPONSE_OK)
     response = dialog.run()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]