[gnome-games/gnome-3-0] sodoku: gi port, GtkPrintOperation*
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/gnome-3-0] sodoku: gi port, GtkPrintOperation*
- Date: Fri, 20 May 2011 21:16:42 +0000 (UTC)
commit 6f55c798efd99f5e64d322b19f987e3de78db89e
Author: John Stowers <john stowers gmail com>
Date: Sat Apr 30 10:38:36 2011 +1200
sodoku: gi port, GtkPrintOperation*
gnome-sudoku/src/lib/printing.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/printing.py b/gnome-sudoku/src/lib/printing.py
index ce66dfa..e2d9270 100644
--- a/gnome-sudoku/src/lib/printing.py
+++ b/gnome-sudoku/src/lib/printing.py
@@ -104,8 +104,8 @@ class SudokuPrinter:
def print_sudokus(*args, **kwargs):
sp = SudokuPrinter(*args, **kwargs)
- res = sp.print_op.run(Gtk.PRINT_OPERATION_ACTION_PRINT_DIALOG, sp.main_window)
- if res == Gtk.PRINT_OPERATION_RESULT_ERROR:
+ res = sp.print_op.run(Gtk.PrintOperationAction.PRINT_DIALOG, sp.main_window)
+ if res == Gtk.PrintOperationResult.ERROR:
error_dialog = Gtk.MessageDialog(sp.main_window,
Gtk.DialogFlags.DESTROY_WITH_PARENT,
Gtk.MessageType.ERROR,
@@ -191,11 +191,11 @@ class GamePrinter (gconf_wrapper.GConfWrapper):
sudokus_per_page = self.sudokusPerPageSpinButton.get_adjustment().get_value())
self.sudokus_printed = sudokus
- response = sp.print_op.run(Gtk.PRINT_OPERATION_ACTION_PRINT_DIALOG, sp.main_window)
+ response = sp.print_op.run(Gtk.PrintOperationAction.PRINT_DIALOG, sp.main_window)
- if response == Gtk.PRINT_OPERATION_RESULT_ERROR:
+ if response == Gtk.PrintOperationResult.ERROR:
pass
- elif response == Gtk.PRINT_OPERATION_RESULT_APPLY:
+ elif response == Gtk.PrintOperationResult.APPLY:
if self.markAsPlayedToggle.get_active():
for sud, lab in self.sudokus_printed:
jar = {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]