<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:12pt"><div>>I would like to know if the Print dialog that is used in Ubuntu, is <br>>provided by a Gnome package or whether it is added by Ubuntu. <br></div><div><br></div><div>This is part of GTK. You are looking in the right spot for the code, most of the filename generation is done in <a href="http://git.gnome.org/browse/gtk+/tree/modules/printbackends/file/gtkprintbackendfile.c" target="_blank">http://git.gnome.org/browse/gtk+/tree/modules/printbackends/file/gtkprintbackendfile.c</a></div><div><br></div><div>You can see my patch in https://bugzilla.gnome.org/show_bug.cgi?id=657322 as an example.</div><div><br></div><div>Also it looks like there is already a bug with the same sort of idea as you see:<br></div><div>https://bugzilla.gnome.org/show_bug.cgi?id=542298<br></div><div><br></div><div>Tim Arceri</div><div><br></div><div
style="font-family: tahoma, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> "ubuntu-devel-discuss-request@lists.ubuntu.com" <ubuntu-devel-discuss-request@lists.ubuntu.com><br> <b><span style="font-weight: bold;">To:</span></b> ubuntu-devel-discuss@lists.ubuntu.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 16 August 2012 10:00 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Ubuntu-devel-discuss Digest, Vol 69, Issue 14<br> </font> </div> <br>Send Ubuntu-devel-discuss mailing list submissions to<br> <a ymailto="mailto:ubuntu-devel-discuss@lists.ubuntu.com" href="mailto:ubuntu-devel-discuss@lists.ubuntu.com">ubuntu-devel-discuss@lists.ubuntu.com</a><br><br>To subscribe or unsubscribe via the World Wide
Web, visit<br> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a><br>or, via email, send a message with subject or body 'help' to<br> <a ymailto="mailto:ubuntu-devel-discuss-request@lists.ubuntu.com" href="mailto:ubuntu-devel-discuss-request@lists.ubuntu.com">ubuntu-devel-discuss-request@lists.ubuntu.com</a><br><br>You can reach the person managing the list at<br> <a ymailto="mailto:ubuntu-devel-discuss-owner@lists.ubuntu.com" href="mailto:ubuntu-devel-discuss-owner@lists.ubuntu.com">ubuntu-devel-discuss-owner@lists.ubuntu.com</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Ubuntu-devel-discuss digest..."<br><br><br>Today's Topics:<br><br> 1. Print Dialog / Improving "Print to file" option (Lanoxx)<br> 2. Re: Print Dialog /
Improving "Print to file" option (Lanoxx)<br> 3. Re: Print Dialog / Improving "Print to file" option (Dale Amon)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 15 Aug 2012 16:08:51 +0200<br>From: Lanoxx <<a ymailto="mailto:lanoxx@gmx.net" href="mailto:lanoxx@gmx.net">lanoxx@gmx.net</a>><br>To: <a ymailto="mailto:desktop-devel-list@gnome.org" href="mailto:desktop-devel-list@gnome.org">desktop-devel-list@gnome.org</a>,<br> <a ymailto="mailto:ubuntu-devel-discuss@lists.ubuntu.com" href="mailto:ubuntu-devel-discuss@lists.ubuntu.com">ubuntu-devel-discuss@lists.ubuntu.com</a><br>Subject: Print Dialog / Improving "Print to file" option<a href="http://git.gnome.org/browse/gtk+/tree/modules/printbackends/file/gtkprintbackendfile.c" target="_blank">http://git.gnome.org/browse/gtk+/tree/modules/printbackends/file/gtkprintbackendfile.c</a><br>Message-ID: <<a
ymailto="mailto:502BAD73.1080303@gmx.net" href="mailto:502BAD73.1080303@gmx.net">502BAD73.1080303@gmx.net</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Hi,<br><br>I would like to know if the Print dialog that is used in Ubuntu, is <br>provided by a Gnome package or whether it is added by Ubuntu. In <br>particular, there is a default printer option named Print to File in <br>Ubuntu, and when it is chosen, then one can print to PDF, Postscript or <br>SVG (at least in Inkscape). The problem with this dialog makes saving <br>the file unnecessary complicated, because on has to first select the <br>folder which normally requires at least 4 clicks:<br><br>1. click on the dropdown<br>2. click "other..."<br>3. Choose the folder (might require more clicks)<br>4. click open<br><br>Then the filename says output.pdf which any sane person will probably <br>want to change. So I have to type the file name and then also add .pdf <br>again
and finally I can click "Print".<br><br>There are another two caveats here, first if I forget to add ".pdf" to <br>the filename, then the file will be saved without the ".pdf" extension. <br>There is no logic to add it automatically. And second if I had printed <br>the document to a file before and now I want to save it again, then I <br>have to remember the file name and type it in again (also having to <br>select the folder again). If I make a typo, then I end up with two files <br>instead of overwriting the first one.<br><br>IMHO, it would me much easier, if there was only one long input field <br>and a button "Browse" next to it, which when clicked just opens a file <br>selection dialog, where one can enter the file name AND folder name <br>together, additionally this dialog should remember the last name that <br>was used to print, and also automatically supply the extension (e.g <br>.pdf, or .ps) based on the type that was selected.<br><br>So my
question is, if this comes from Gnome or from Ubuntu so I can <br>create a bug in the right bug tracker for this, and maybe someone could <br>also point me to the code for the "Print to File" Options. Maybe I could <br>even fix this myself.<br><br>Kind Regards<br>Lanoxx<br><br><br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Wed, 15 Aug 2012 22:38:15 +0200<br>From: Lanoxx <<a ymailto="mailto:lanoxx@gmx.net" href="mailto:lanoxx@gmx.net">lanoxx@gmx.net</a>><br>To: Javier Jard?n <<a ymailto="mailto:jjardon@gnome.org" href="mailto:jjardon@gnome.org">jjardon@gnome.org</a>><br>Cc: <a ymailto="mailto:ubuntu-devel-discuss@lists.ubuntu.com" href="mailto:ubuntu-devel-discuss@lists.ubuntu.com">ubuntu-devel-discuss@lists.ubuntu.com</a>,<br> <a ymailto="mailto:desktop-devel-list@gnome.org" href="mailto:desktop-devel-list@gnome.org">desktop-devel-list@gnome.org</a><br>Subject: Re: Print Dialog / Improving "Print
to file" option<br>Message-ID: <<a ymailto="mailto:502C08B7.5000409@gmx.net" href="mailto:502C08B7.5000409@gmx.net">502C08B7.5000409@gmx.net</a>><br>Content-Type: text/plain; charset=UTF-8; format=flowed<br><br><br>On 15/08/12 20:27, Javier Jard?n wrote:<br>> On 15 August 2012 23:08, Lanoxx <<a ymailto="mailto:lanoxx@gmx.net" href="mailto:lanoxx@gmx.net">lanoxx@gmx.net</a>> wrote:<br>>> Hi,<br>> Hello,<br>><br>>> Then the filename says output.pdf which any sane person will probably want<br>>> to change. So I have to type the file name and then also add .pdf again and<br>>> finally I can click "Print".<br>> FYI, There is a GnomeGoal proposed related to this [1]<br>><br>> [1] <a href="https://live.gnome.org/GnomeGoals/PrintToFile" target="_blank">https://live.gnome.org/GnomeGoals/PrintToFile</a><br>Thats a great goal, and should definitely be implemented. But still it <br>does not solve the actual
problem which I described. I also looked here:<br><a href="http://git.gnome.org/browse/gtk+/tree/modules/printbackends/file/gtkprintbackendfile.c" target="_blank">http://git.gnome.org/browse/gtk+/tree/modules/printbackends/file/gtkprintbackendfile.c</a><br>but I can't find any GtkWidget being created, so I guess thats not it.<br>><br><br><br><br><br>------------------------------<br><br>Message: 3<br>Date: Wed, 15 Aug 2012 18:28:32 -0700<br>From: Dale Amon <<a ymailto="mailto:amon@vnl.com" href="mailto:amon@vnl.com">amon@vnl.com</a>><br>To: Lanoxx <<a ymailto="mailto:lanoxx@gmx.net" href="mailto:lanoxx@gmx.net">lanoxx@gmx.net</a>><br>Cc: <a ymailto="mailto:ubuntu-devel-discuss@lists.ubuntu.com" href="mailto:ubuntu-devel-discuss@lists.ubuntu.com">ubuntu-devel-discuss@lists.ubuntu.com</a>, Javier Jard?n<br> <<a ymailto="mailto:jjardon@gnome.org"
href="mailto:jjardon@gnome.org">jjardon@gnome.org</a>>, <a ymailto="mailto:desktop-devel-list@gnome.org" href="mailto:desktop-devel-list@gnome.org">desktop-devel-list@gnome.org</a><br>Subject: Re: Print Dialog / Improving "Print to file" option<br>Message-ID: <<a ymailto="mailto:20120816012832.GW27217@vnl.com" href="mailto:20120816012832.GW27217@vnl.com">20120816012832.GW27217@vnl.com</a>><br>Content-Type: text/plain; charset=iso-8859-1<br><br>On Wed, Aug 15, 2012 at 10:38:15PM +0200, Lanoxx wrote:<br>> On 15/08/12 20:27, Javier Jard?n wrote:<br>> >On 15 August 2012 23:08, Lanoxx <<a ymailto="mailto:lanoxx@gmx.net" href="mailto:lanoxx@gmx.net">lanoxx@gmx.net</a>> wrote:<br>> >>Hi,<br>> >Hello,<br>> ><br>> >>Then the filename says output.pdf which any sane person will probably want<br>> >>to change. So I have to type the file name and then also add .pdf again and<br>>
>>finally I can click "Print".<br>> >FYI, There is a GnomeGoal proposed related to this [1]<br>> ><br>> >[1] <a href="https://live.gnome.org/GnomeGoals/PrintToFile" target="_blank">https://live.gnome.org/GnomeGoals/PrintToFile</a><br>> Thats a great goal, and should definitely be implemented. But still<br>> it does not solve the actual problem which I described. I also<br>> looked here:<br>> <a href="http://git.gnome.org/browse/gtk+/tree/modules/printbackends/file/gtkprintbackendfile.c" target="_blank">http://git.gnome.org/browse/gtk+/tree/modules/printbackends/file/gtkprintbackendfile.c</a><br>> but I can't find any GtkWidget being created, so I guess thats not it.<br><br>I agree with the idea of standardizing on a file browser window<br>for selecting the file and adding in the defaults in an editable way.<br>I very often save things to file with names like<br><br> file1.pdf<br>
file2.pdf<br> file2a.pdf<br> file3.pdf<br><br>and so forth, so memory is useful. It would also be nice if I there<br>was some memory such that if you printed to file the last time, it<br>pops up the next time just as you left it. I do not know about<br>others but 'least surprise' for me is that things are always left<br>as I last used them.<br><br>It would also be useful to have a 'recently used' capability that<br>just puts you to the file name and printer of one of the last N <br>files you have printed. Useful if you forgot where you put something;<br>or in a large facility, which of multiple printers in several<br>buildings did you send that thing you printed before going out to<br>lunch; also useful if you want to go back and do a print to file<br>of the something under a similar name. Hell, you might even try<br>remembering the source URL as well as the destination printer or<br>file
name.<br><br><br><br><br>------------------------------<br><br>-- <br>Ubuntu-devel-discuss mailing list<br><a ymailto="mailto:Ubuntu-devel-discuss@lists.ubuntu.com" href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com">Ubuntu-devel-discuss@lists.ubuntu.com</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a><br><br><br>End of Ubuntu-devel-discuss Digest, Vol 69, Issue 14<br>****************************************************<br><br><br> </div> </div> </div></body></html>