summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Make gtk_printer_get_capabilities public, and move theChristian Persch2007-04-301-1/+1
| | | | | | | | | | | | | | | | 2007-04-30 Christian Persch <chpe@gnome.org> * docs/reference/gtk/gtk-sections.txt: * gtk/gtk.symbols: * gtk/gtkprinter-private.h: * gtk/gtkprinter.c: (gtk_printer_get_capabilities), (gtk_print_capabilities_get_type): * gtk/gtkprinter.h: * gtk/gtkprintunixdialog.c: (selected_printer_changed): Make gtk_printer_get_capabilities public, and move the GtkPrintCapabilities definition to gtkprinter.h. Bug #390437. svn path=/trunk/; revision=17746
* Fix some compiler warnings. (#433642, Kjartan Maraas)Matthias Clasen2007-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-04-30 Matthias Clasen <mclasen@redhat.com> Fix some compiler warnings. (#433642, Kjartan Maraas) * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_get_info): (gtk_file_system_win32_create_folder): * gtk/gtkaction.c (gtk_action_create_menu): Fix NULL/FALSE confusion. * gtk/gtklinkbutton.c (gtk_link_button_clicked): Pass the right type to uri_func. * gtk/gtktext.c (gtk_text_key_press): * gtk/gtkstatusicon.c (gtk_status_icon_get_property): * gtk/gtkxembed.c (_gtk_xembed_send_message): Add casts. * gtk/gtktrayicon-x11.c (gtk_tray_icon_manager_window_destroyed): (gtk_tray_icon_delete): * gtk/gtkprintunixdialog.c (create_main_page): * gtk/gtkhsv.c (gtk_hsv_motion): Remove unused variables. * gtk/gtkliststore.c: Adapt callbacks to GSequence types. svn path=/trunk/; revision=17739
* Remove leftover debugging spewMatthias Clasen2007-04-291-3/+0
| | | | svn path=/trunk/; revision=17717
* Make gtk_printer_has_details() and gtk_printer_request_details() public.Matthias Clasen2007-04-291-2/+2
| | | | | | | | | | | | | | | | | 2007-04-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkprinter-private.h: * gtk/gtkprinter.[hc]: Make gtk_printer_has_details() and gtk_printer_request_details() public. * gtk/gtkpagesetupunixdialog.c: * gtk/gtkprintunixdialog.c: Update callers. (#389203, Christian Persch) svn path=/trunk/; revision=17690
* Parse half-open ranges like -2 or 3-, and be a bit more liberal aboutMatthias Clasen2007-04-241-13/+29
| | | | | | | | | | | | | | | | | 2007-04-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c (dialog_get_page_ranges): Parse half-open ranges like -2 or 3-, and be a bit more liberal about whitespace. (dialog_set_page_ranges): Support half-open ranges. * gtk/gtkprintoperation.c (print_pages_idle): Substitute the number of pages in half-open ranges. (preview_iface_is_selected): Support half-open ranges here, too. svn path=/trunk/; revision=17627
* Scroll to make the selected printer visible. (#418403, Nickolay V.Matthias Clasen2007-03-161-1/+9
| | | | | | | | | | | | 2007-03-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c (printer_added_cb): Scroll to make the selected printer visible. (#418403, Nickolay V. Shmyrev, patch by Christian Persch) svn path=/trunk/; revision=17531
* Change a labelMatthias Clasen2007-02-261-1/+1
| | | | svn path=/trunk/; revision=17356
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-1/+1
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Add a tooltip explaining the format of page ranges, and improve the pageMatthias Clasen2006-12-201-8/+34
| | | | | | | | 2006-12-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c: Add a tooltip explaining the format of page ranges, and improve the page sequence icon for the case of n_copies == 1.
* Improve print dialogMatthias Clasen2006-12-061-1/+5
|
* Fix a typo. (#359542, Ghee Teo)Matthias Clasen2006-10-081-1/+1
| | | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities): Fix a typo. (#359542, Ghee Teo)
* Remove leftover debuggingMatthias Clasen2006-08-171-1/+0
|
* Re-select the current printer to update per-printer ui. (#348245, DonMatthias Clasen2006-08-171-1/+17
| | | | | | | | 2006-08-17 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_manual_capabilities): Re-select the current printer to update per-printer ui. (#348245, Don Scorgie)
* Documentation updates.Matthias Clasen2006-06-301-1/+4
| | | | | | | | | | 2006-06-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges): Documentation updates. * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_settings): Don't leak the ranges. (#346237, Carolyn MacLeod)
* Add a preview capabilityMatthias Clasen2006-06-301-1/+12
|
* Documentation additions and fixes.Matthias Clasen2006-06-291-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | 2006-06-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprinter.c: * gtk/gtkprintunixdialog.c: * gtk/gtkprintoperationpreview.c: * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context): * gtk/gtklabel.c (gtk_label_set_line_wrap_mode): * gtk/gtkentry.c (gtk_entry_new): * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label): * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation additions and fixes. * gtk/gtkaspectframe.h: * gtk/gtkaboutdialog.c: * gtk/gtkcalendar.c: * gtk/gtkinputdialog.c: * gtk/gtk.symbols: Remove unnecessary includes. * gtk/gtkprogress.[hc]: * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION, remove unnecessary includes.
* Forgotten fileMatthias Clasen2006-06-191-2/+4
|
* Add a GENERATE_PS capability. And use it here.Matthias Clasen2006-06-191-5/+12
| | | | | | | 2006-06-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.h: Add a GENERATE_PS capability. * gtk/gtkprintunixdialog.c (is_printer_active): And use it here.
* ~Matthias Clasen2006-06-171-61/+33
| | | | | | | | | 2006-06-17 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c: Clean up the handling of printer-specific options. There is just one extension point on the main tab now, and all options in the GtkPrintDialogExtension group are put there.
* Don't grow additional columns.Matthias Clasen2006-06-161-1/+1
| | | | | | | 2006-06-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c (add_option_to_table): Don't grow additional columns.
* Move the conflict label out of the button box. (#339456, Christian Persch)Matthias Clasen2006-06-161-25/+10
| | | | | | | 2006-06-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c (populate_dialog): Move the conflict label out of the button box. (#339456, Christian Persch)
* Use gtk_printer_accepts_ps here.Matthias Clasen2006-06-121-9/+5
| | | | | | | | | | | | | | | 2006-06-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c (is_printer_active): Use gtk_printer_accepts_ps here. * modules/printbackends/pdf/gtkprintbackendpdf.c (gtk_print_backend_pdf_init): Mark the virtual "Print to PDF" printer as not accepting PS. * gtk/gtk.symbols: * gtk/gtkprinter.h: * gtk/gtkprinter.c: Add two new properties accepts-pdf and accepts-ps (with getters) to allow learning supported formats.
* Add a GTK_PRINT_CAPABILITY_GENERATE_PDF capability.Matthias Clasen2006-06-121-2/+16
| | | | | | | | | | 2006-06-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.h: Add a GTK_PRINT_CAPABILITY_GENERATE_PDF capability. * gtk/gtkprintunixdialog.c: Use it here to hide "Print to PDF" from the printer list. (#339592, Christian Persch)
* Cosmetic cleanups.Matthias Clasen2006-06-121-34/+35
| | | | | | | | | 2006-06-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.c: * gtk/gtkprintbackend.c: * gtk/gtkpagesetupunixdialog.c: * gtk/gtkprintunixdialog.c: Cosmetic cleanups.
* Don't include gtkprinter-private.h here.Matthias Clasen2006-06-081-0/+1
| | | | | | | | | | | | | | | 2006-06-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintbackend.h: Don't include gtkprinter-private.h here. * gtk/gtkprintunixdialog.c: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintjob.c: * gtk/gtkprintbackend.c: Instead include it here. * gtk/gtk.symbols: * gtk/gtkprintoperation.h: * gtk/gtkprintoperation.c: Rename pdf_target to export_filename.
* Add gtkprintoperationpreview.[ch] Set default preview command. HardcodedAlexander Larsson2006-06-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-06-02 Alexander Larsson <alexl@redhat.com> * gtk/Makefile.am: Add gtkprintoperationpreview.[ch] Set default preview command. Hardcoded for now. * gtk/gtkmarshalers.list: Add BOOLEAN:OBJECT,OBJECT,OBJECT * gtk/gtkprintbackend.c: Add preview command property. * gtk/gtkprintcontext.[ch]: Make less dependent on PrintOperation for output settings Externally set cairo_t and dpi. Resettable. Create fontmap without metrics hinting (so that print preview text layout doesn't depend on zoom level). * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.[ch]: Initial work on print preview API and default implementation using an external preview app. * gtk/gtkprintoperation-win32.c: Some needed updates. Not done, needs more work. * gtk/gtkprintoperationpreview.[ch]: New interface used in print preview api. * gtk/gtkprintunixdialog.c: Add print preview dialog. * tests/print-editor.c: Test using an custom print preview widget.
* more canonical signal namesMatthias Clasen2006-06-011-2/+2
|
* Make collate check button insensitiveMatthias Clasen2006-05-241-5/+15
|
* Make the range entry insensitive if another range option is selected.Matthias Clasen2006-05-241-0/+10
| | | | | | | | 2006-05-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c (create_main_page): Make the range entry insensitive if another range option is selected. (#342783, Caolan McNamara)
* Add gtk_print_unix_dialog_set_manual_capabilities that controls whatAlexander Larsson2006-05-241-34/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-24 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintunixdialog.[ch]: Add gtk_print_unix_dialog_set_manual_capabilities that controls what widgets to enable in the dialog depending on the apps capabilities. * gtk/gtkprintbackend.[ch]: * gtk/gtkprinter-private.h: * gtk/gtkprinter.c: * gtk/gtkprintjob.h: Add printer_get_capabilities to backend. Move some fallback calls to the printbackend base class. * gtk/gtkprintoperation-unix.c: Set manual capabilities * modules/printbackends/cups/gtkprintbackendcups.c: Implement get_capabilities * modules/printbackends/lpr/gtkprintbackendlpr.c: * modules/printbackends/pdf/gtkprintbackendpdf.c: Move some methods to baseclass.
* Add gtk_print_unix_dialog_add_custom_tabAlexander Larsson2006-05-231-0/+11
| | | | | | | | | | | | | | | 2006-05-23 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintunixdialog.[ch]: Add gtk_print_unix_dialog_add_custom_tab * gtk/gtkprintoperation-unix.c: Implement custom widgets for unix. Fix some warnings by including cairo-ps/pdf.h * gtk/gtkprintoperation-win32.c: Mark string for translation.
* more of the sameMatthias Clasen2006-05-221-2/+1
|
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Some fixes to capitalization of labels. (#341558, Dennis Cranston)Matthias Clasen2006-05-131-5/+5
| | | | | | | 2006-05-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c: Some fixes to capitalization of labels. (#341558, Dennis Cranston)
* Better handling of the window group on unsetting transient-for, since theAlexander Larsson2006-05-121-26/+1
| | | | | | | | | | | | | | | | | 2006-05-12 Alexander Larsson <alexl@redhat.com> * gtk/gtkwindow.c: Better handling of the window group on unsetting transient-for, since the transient parent might have changed group. * gtk/gtkmenu.c: Combine the handling of transient for the attach-widget and the window group handling by setting transient-to on popup/popdown only. See bug #340401 * gtk/gtkprintunixdialog.c: Remove part of old fix no longer needed.
* Fix build errors.Alexander Larsson2006-05-121-10/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-12 Alexander Larsson <alexl@redhat.com> * gtk/gtkrecentmanager.c: Fix build errors. * gtk/gtk.symbols: * demos/gtk-demo/printing.c: * gtk/gtkprintoperation-win32.c: * gtk/gtkprintoperation.[ch]: * gtk/gtkprintsettings.[ch]: * modules/printbackends/cups/gtkprintbackendcups.c: * modules/printbackends/lpr/gtkprintbackendlpr.c: * modules/printbackends/pdf/gtkprintbackendpdf.c: * tests/print-editor.c: * tests/testnouiprint.c: * tests/testprint.c: * tests/testprintfileoperation.c: Rename functions from nr_of_pages to n_pages, and num_copies to n_copies to match other gtk+ names. * gtk/gtkmenu.c: (gtk_menu_popdown): Only re-set window group on popdown if we set it on popup (i.e. if there is a parent menu shell). Fixed part of bug #340401 * gtk/gtkwindow.c: Add (contruct) property "transient-for" to GtkWindow. This is needed for the fix to bug #340401. * gtk/gtkprintunixdialog.c: Use the transient-for property on construction and populate the dialog with widgets after that. This fixes bug #340401. More n_pages renames.
* Corrected a duplicate word.Francisco Javier F. Serrador2006-05-081-1/+1
| | | | | | | 2006-05-08 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_class_init): Corrected a duplicate word.
* Small tweaks to the unix print dialogMatthias Clasen2006-05-051-11/+20
|
* Added new symbolsAlexander Larsson2006-05-041-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-04 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: Added new symbols * gtk/gtkpagesetupunixdialog.c: * gtk/gtkprintunixdialog.c: Destroy backends when finalizing dialogs. Fix printer leak in selected_printer_changed. * gtk/gtkprintbackend.[ch]: Convert from interface to baseclass. Move printer hashtable here so that the baseclass can handle the slightly complicated ownership model. Add gtk_print_backend_destroy which runs the dispose method, causing the ref-cycles between the backend and its printers to be broken. Add gtk_print_backend_unref_at_idle(). * gtk/gtkprinter.[ch]: GtkPrinter objects now ref their backend so that its always availible, since its needed for the printer object to work. This causes a reference-cycle that is broken using gtk_print_backend_destroy. Add gtk_printer_compare. * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.c: Implement !show_dialog for unix. Make sure the print data is fully spooled before returning from a sync run_dialog. * modules/printbackends/cups/gtkcupsutils.[ch]: Add gtk_cups_request_ipp_add_strings * modules/printbackends/cups/gtkprintbackendcups.c: * modules/printbackends/cups/gtkprintercups.c: * modules/printbackends/lpr/gtkprintbackendlpr.c: * modules/printbackends/pdf/gtkprintbackendpdf.c: Convert backends to derive instead of implementing interface. Move common code into baseclass. CUPS: Remove the printer polling in dispose, not finalize. In the cups watch, remove the backend at idle instead of immediately, since the unref can cause the module to be unloaded. Limit the number of printer attributes requested Get printer uri in initial printer listing so that we can use the printer object immediately. * tests/Makefile.am: * tests/testnouiprint.c: Add testcase for !show_dialog.
* Replace the xpm collate icons by cairo drawing that respects themes.Matthias Clasen2006-05-031-203/+100
| | | | | * gtk/gtkprintunixdialog.c: Replace the xpm collate icons by cairo drawing that respects themes.
* Don't leak the cairo context here. (#340522, Christian Persch)Matthias Clasen2006-05-031-0/+2
| | | | | | | 2006-05-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the cairo context here. (#340522, Christian Persch)
* Use a priv variable when accessing priv multiple times in the sameChristian Persch2006-05-021-214/+262
| | | | | | | | | | | | | | 2006-05-02 Christian Persch <chpe@cvs.gnome.org> * gtk/gtkpagesetupunixdialog.c: * gtk/gtkprintcontext.c: * gtk/gtkprinter.c: * gtk/gtkprinteroptionwidget.c: * gtk/gtkprintjob.c: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.c: * gtk/gtkprintunixdialog.c: Use a priv variable when accessing priv multiple times in the same function. Bug #340288.
* Improve the print dialog layout, mark some more strings for translation.Matthias Clasen2006-04-301-143/+154
| | | | | | | | | 2006-04-30 Matthias Clasen <mclasen@localhost.localdomain> * gtk/gtkprinteroption.c: * gtk/gtkprinteroptionwidget.c: * gtk/gtkprintunixdialog.c: Improve the print dialog layout, mark some more strings for translation. (#340139, Christian Persch)
* Add docs.Matthias Clasen2006-04-241-0/+73
| | | | | | | | 2006-04-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintunixdialog.c: Add docs. * gtk/gtkstatusicon.c (gtk_status_icon_get_visible): Typo fix.
* Even/Odd Pages -> Even/Odd SheetsAlexander Larsson2006-04-241-3/+3
| | | | | | | 2006-04-24 Alexander Larsson <alexl@redhat.com> * gtk/gtkprintunixdialog.c (create_page_setup_page): Even/Odd Pages -> Even/Odd Sheets
* Declare GtkPrintJob.Alexander Larsson2006-04-241-1/+1
| | | | | | | | | | 2006-04-24 Alexander Larsson <alexl@redhat.com> * gtk/gtkprintjob.h: Declare GtkPrintJob. * gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_settings): Change g_return_if_fail to g_return_val_if_fail.
* Merge the gtk-printing branch. For more detailed ChangeLog entries, seeAlexander Larsson2006-04-211-0/+2577
2006-04-21 Alexander Larsson <alexl@redhat.com> Merge the gtk-printing branch. For more detailed ChangeLog entries, see the branch. * .cvsignore: * Makefile.am: * configure.in: * docs/tools/widgets.c: * gtk+-unix-print-2.0.pc.in: * gtk/Makefile.am: * gtk/gen-paper-names.c: * gtk/gtk.h: * gtk/gtk.symbols: * gtk/gtkenums.h: * gtk/gtkiconfactory.c: * gtk/gtkmarshalers.list: * gtk/gtkpagesetup.[ch]: * gtk/gtkpagesetupunixdialog.[ch]: * gtk/gtkpapersize.[ch]: * gtk/gtkprint-win32.[ch]: * gtk/gtkprintbackend.[ch]: * gtk/gtkprintcontext.[ch]: * gtk/gtkprinter-private.h: * gtk/gtkprinter.[ch]: * gtk/gtkprinteroption.[ch]: * gtk/gtkprinteroptionset.[ch]: * gtk/gtkprinteroptionwidget.[ch]: * gtk/gtkprintjob.[ch]: * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation-win32.c: * gtk/gtkprintoperation.[ch]: * gtk/gtkprintsettings.[ch]: * gtk/gtkprintunixdialog.[ch]: * gtk/paper_names.c: * gtk/paper_names_offsets.c: Platform independent printing API and implementations for unix and windows. * gtk/gtkstock.h: * gtk/stock-icons/24/gtk-orientation-landscape.png: * gtk/stock-icons/24/gtk-orientation-portrait.png: * gtk/stock-icons/24/gtk-orientation-reverse-landscape.png: Add stock icons for page orientation. * modules/Makefile.am: * modules/printbackends/Makefile.am: * modules/printbackends/cups/Makefile.am: * modules/printbackends/cups/gtkcupsutils.[ch]: * modules/printbackends/cups/gtkprintbackendcups.[ch]: * modules/printbackends/cups/gtkprintercups.[ch]: Cups printing backend for unix. * modules/printbackends/lpr/Makefile.am: * modules/printbackends/lpr/gtkprintbackendlpr.[ch]: lpr printing backend for unix. * modules/printbackends/pdf/Makefile.am: * modules/printbackends/pdf/gtkprintbackendpdf.[ch]: print-to-pdf printing backend for unix. * tests/.cvsignore: * tests/Makefile.am: * tests/print-editor.c: Test application for printing. * gdk/gdk.symbols: * gdk/win32/gdkevents-win32.c: * gdk/win32/gdkwin32.h: Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the mainloop while displaying a win32 common dialog. * gdk/directfb/Makefile.am: Whitespace cleanup.