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 344517 - print settings always return NULL page size
print settings always return NULL page size
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Printing
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-06-10 21:11 UTC by Christian Persch
Modified: 2018-02-10 03:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2006-06-10 21:11:04 UTC
Steps:
0) Create unix print dialogue
1) Run it
2) Get GtkPrintSettings from it
3) gtk_print_settings_get_paper_size

This will always return NULL, at least in my testing.
Comment 1 Matthias Clasen 2007-04-30 03:04:43 UTC
According to my reading of the code, paper size is only set in the print settings
on win32. On unix, the print dialog does not have paper selection, since we have the separate page setup dialog, and thus the paper size is taken from the page setup. 

You should still be able to manually set a paper size in the print settings if you want, though.
Comment 2 Alexander Larsson 2007-04-30 08:00:24 UTC
Yes, normally you need layout information like page size ahead of printing.

I do remember talking about taking the default (i.e. if not specified by the app) page setup from the selected printer though, so that you can print to the native printer page size in a more limited printing case with no page setup. We don't do this atm though.
Comment 3 Matthias Clasen 2018-02-10 03:40:51 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.