After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 403717 - print preview operation should pass settings to preview programme
print preview operation should pass settings to preview programme
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
Depends on: 344515
Blocks: 396475
 
 
Reported: 2007-02-02 20:35 UTC by Christian Persch
Modified: 2007-06-17 18:45 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
proposed patch (3.98 KB, patch)
2007-02-02 20:36 UTC, Christian Persch
committed Details | Review
Patch (434 bytes, patch)
2007-05-11 12:50 UTC, Carlos Garcia Campos
committed Details | Review

Description Christian Persch 2007-02-02 20:35:59 UTC
To enable the user to print the previewed output from evince, the print settings need to be passed along to the preview programme.
Comment 1 Christian Persch 2007-02-02 20:36:38 UTC
Created attachment 81785 [details] [review]
proposed patch
Comment 2 Carlos Garcia Campos 2007-02-03 11:01:16 UTC
what about page setup? we also need page setup in evince to print the document. I prefer --print-settings instead of just --settings. 
Comment 3 Christian Persch 2007-02-03 12:58:19 UTC
The page setup is a bit of a problem: which one? It can be modified for each page by the request-page-setup signal handler...
Comment 4 Matthias Clasen 2007-04-29 06:58:53 UTC
I've committed the support for %s in gtk-print-preview-command.
I haven't changed the default value, since evince doesn't seem
to support --print-settings yet.

2007-04-29  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintoperation-unix.c
        (_gtk_print_operation_platform_backend_launch_preview):
        Support passing a print settings file to the preview
        command.  (#403717, Christian Persch)

        * gtk/gtksettings.c: Document %s in the
        gtk-print-preview-command setting.

Comment 5 Carlos Garcia Campos 2007-05-11 12:50:01 UTC
Created attachment 88007 [details] [review]
Patch

Evince has now support for --print-settings, so here is the trivial patch for the Makefile.am.
Comment 6 Xan Lopez 2007-06-15 22:14:06 UTC
FWIW, if I'm not mistaken Evince 0.9.0 already has --print-settings support, so there's a released version we can use.
Comment 7 Matthias Clasen 2007-06-16 22:48:34 UTC
from evince 0.9.0 help output:

Application Options:
  -p, --page-label=PAGE          The page of the document to display.
  -f, --fullscreen               Run evince in fullscreen mode
  -s, --presentation             Run evince in presentation mode
  -w, --preview                  Run evince as a previewer
  --display=DISPLAY              X display to use


...doesn't look like it.
Comment 8 Christian Persch 2007-06-16 22:54:03 UTC
That's not surprising, since --print-settings is a G_OPTION_FLAG_HIDDEN option. It's definitely present in 0.9.0.
Comment 9 Matthias Clasen 2007-06-16 22:57:02 UTC
Odd. Is there any good reason for that ? 

Anyway, go ahead and commit then, but also add a note to README.in about this,
please.
Comment 10 Christian Persch 2007-06-17 11:54:21 UTC
All the print preview related options are hidden, since they're not useful for normal operation.


        * gtk/Makefile.am: Pass the print settings to the preview programme.
        Bug #403717, patch by Carlos Garcia Campos.
Comment 11 Matthias Clasen 2007-06-17 15:02:53 UTC
Can we have the note in README.in too, please ?
Comment 12 Christian Persch 2007-06-17 18:45:32 UTC
Added a note.