Community
Participate
Working Groups
Since gtk bug http://bugzilla.gnome.org/show_bug.cgi?id=344519 has now been fixed, we should use this feature in the GTK print dialog. We need to show the "Selection" radio by default when the dialog is opened, and then we need to set and get the value of the radio before and after the PrintDialog is opened. I believe the new radio will show up if you set gtk_print_unix_dialog_set_support_selection(true) Then, if the scope in our PrinterData is set to PrinterData.SELECTION, we need to set (and get) GTK_PRINT_PAGES_SELECTION in the gtk_print_settings_print_pages field of the gtk_print_settings struct.
See also bug 25554 which asks for the ability to hide the "print selection" radio in the dialog.
Also, please make sure that this feature is only called if the gtk version is > 2.18.
while you are in the area... :)
Isn't there any progress on this topic ? Now we are in 2014, eclipse-version 4.3.2 and still no possibility to print only a selection of code without copy/paste and an external editor ! Is this such a complicated issue or is it only a matter of importance/resources ?
Still valid.
Added myself to Cc list. Nowadays I need to have two Eclipse installations - one on Linux for daily work and another on Windows to be able to print some snippets of code, as the "print selection" works only on Windows version. The Eclipse version is 4.12.0 on both Windows and Linux.
I think this merits investigation for 4.14.
(In reply to Eric Williams from comment #7) > I think this merits investigation for 4.14. I believe I've managed to get a proof of concept working, so I'll take this one for M1.
New Gerrit change created: https://git.eclipse.org/r/149080
Gerrit change https://git.eclipse.org/r/149080 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=a323d29b464742ac12e5cb42948bc0d6f843f3c7
(In reply to Eclipse Genie from comment #10) > Gerrit change https://git.eclipse.org/r/149080 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=a323d29b464742ac12e5cb42948bc0d6f843f3c7 In master now.
Verified in I20191008-0600.