minor tweeks to gtkprint
svn: r7871
This commit is contained in:
parent
344c93fa94
commit
3f8f228ab0
@ -263,10 +263,7 @@ class PrintFacade(gtk.PrintOperation):
|
|||||||
def paginate(self, operation, context):
|
def paginate(self, operation, context):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def preview(self, preview, preview_again, context, parent, dummy=None):
|
def preview(self, operation, preview, context, parent, dummy=None):
|
||||||
# It looks like there is a bug in the pygtk bindings that
|
|
||||||
# passes the preview_opertion in twice.
|
|
||||||
|
|
||||||
preview = PreviewWindow(self,preview,context,parent)
|
preview = PreviewWindow(self,preview,context,parent)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@ -277,7 +274,7 @@ class PrintFacade(gtk.PrintOperation):
|
|||||||
"""This is the method that actually runs the Gtk Print operation."""
|
"""This is the method that actually runs the Gtk Print operation."""
|
||||||
|
|
||||||
# We need to store the settings somewhere so that they are remembered
|
# We need to store the settings somewhere so that they are remembered
|
||||||
# each to the dialog is restarted.
|
# each time the dialog is restarted.
|
||||||
if self._settings != None:
|
if self._settings != None:
|
||||||
self.set_print_settings(self._settings)
|
self.set_print_settings(self._settings)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user