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