summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation.c
Commit message (Collapse)AuthorAgeFilesLines
* More of the sameMatthias Clasen2007-05-261-36/+42
| | | | svn path=/trunk/; revision=17925
* Unset priv->platform_data and priv->free_platform_data to preventTorsten Schoenfeld2007-05-151-0/+3
| | | | | | | | | | 2007-05-15 Torsten Schoenfeld <kaffeetisch@gmx.de> * gtk/gtkprintoperation.c (pdf_end_run): Unset priv->platform_data and priv->free_platform_data to prevent gtk_print_operation_finalize() from freeing the cairo surface a second time. svn path=/trunk/; revision=17851
* Fix a compiler warning.Matthias Clasen2007-04-301-1/+2
| | | | svn path=/trunk/; revision=17729
* Translate the default job name, and don't utf8-validate the job name inMatthias Clasen2007-04-301-2/+6
| | | | | | | | | | | | 2007-04-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c: Translate the default job name, and don't utf8-validate the job name in the setter. (#421993, Morten Welinder) svn path=/trunk/; revision=17726
* Fix some issues with reference handling in the printing code. (#429902,Matthias Clasen2007-04-301-3/+20
| | | | | | | | | | | | | | | | | | | | | 2007-04-29 Matthias Clasen <mclasen@redhat.com> Fix some issues with reference handling in the printing code. (#429902, Mathias Hasselmann) * gtk/gtkprintoperation.c (gtk_print_operation_finalize): Unref the print context, if we have one. (gtk_print_operation_done): Add a default ::done handler that unrefs the print context. (preview_ready): Take a reference on the print operation preview here. (print_pages_idle): ...not here, (preview_print_idle_done): ...and release it here. * tests/print-editor.c (preview_cb): Take a reference on the print operation here. svn path=/trunk/; revision=17722
* Don't get stuck in a recursive mainloop if a synchronous preview isMatthias Clasen2007-04-301-2/+3
| | | | | | | | | | 2007-04-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c (print_pages_idle): Don't get stuck in a recursive mainloop if a synchronous preview is cancelled. svn path=/trunk/; revision=17721
* Make the emission of ::end-print and ::done consistent for previews.Matthias Clasen2007-04-301-7/+6
| | | | | | | | | | | | | | | | | | | | 2007-04-29 Matthias Clasen <mclasen@redhat.com> Make the emission of ::end-print and ::done consistent for previews. (#347567, Yevgen Muntyan) * gtk/gtkprintoperation.c (preview_iface_end_preview): Set the finished status here. (preview_end_run): ...and not here. (print_pages_idle_done): Emit ::done for a cancelled preview. (print_pages_idle): If a preview has been cancelled, don't emit ::ready, but emit ::end-print. tests/print-editor.c: Use ::end-print to undo allocations from ::begin-print. svn path=/trunk/; revision=17719
* Document that a print operation can be run only once, and add aMatthias Clasen2007-04-291-4/+7
| | | | | | | | | | | | 2007-04-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c (gtk_print_operation_run): Document that a print operation can be run only once, and add a corresponding g_return_if_fail(). (#379399, Masao Mutoh) svn path=/trunk/; revision=17715
* Fix the buildMatthias Clasen2007-04-291-1/+1
| | | | svn path=/trunk/; revision=17701
* Also check the default handler when deciding whether to emit the paginateMatthias Clasen2007-04-291-1/+2
| | | | | | | | | | | | 2007-04-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c (print_pages_idle): Also check the default handler when deciding whether to emit the paginate signal. (#345345, Yevgen Muntyan) svn path=/trunk/; revision=17698
* Don't crash if end_run is not set. (#424168, Matthias Hasselmann)Matthias Clasen2007-04-251-2/+3
| | | | | | | | | | | 2007-04-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c (preview_iface_end_preview): Don't crash if end_run is not set. (#424168, Matthias Hasselmann) svn path=/trunk/; revision=17636
* fix the build. Dunno if the fix is right, but I think it is.Michael Natterer2007-04-251-1/+1
| | | | | | | | | | 2007-04-25 Michael Natterer <mitch@imendio.com> * gtk/gtkprintoperation.c (preview_iface_is_selected): fix the build. Dunno if the fix is right, but I think it is. svn path=/trunk/; revision=17629
* Parse half-open ranges like -2 or 3-, and be a bit more liberal aboutMatthias Clasen2007-04-241-1/+5
| | | | | | | | | | | | | | | | | 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
* Make async print preview work by actually starting the print process inAlexander Larsson2007-04-161-1/+4
| | | | | | | | | | | | 2007-04-16 Alexander Larsson <alexl@redhat.com> * gtk/gtkprintoperation.c (gtk_print_operation_run): Make async print preview work by actually starting the print process in that case (#424168) svn path=/trunk/; revision=17603
* Fix an oversight in an example.Matthias Clasen2007-03-121-1/+1
| | | | svn path=/trunk/; revision=17495
* Fix another leakMatthias Clasen2007-01-041-0/+1
| | | | svn path=/trunk/; revision=17048
* fix doc formatting errorsMatthias Clasen2006-12-291-1/+1
|
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-29/+11
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Fix typosMatthias Clasen2006-09-251-1/+1
|
* Queue printing idles at a low priority. (#348289, Yevgen Muntyan)Matthias Clasen2006-08-171-2/+2
| | | | | | | 2006-08-17 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c (print_pages, preview_ready): Queue printing idles at a low priority. (#348289, Yevgen Muntyan)
* Some more printing docsMatthias Clasen2006-08-151-3/+14
|
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-2/+2
|
* some cross-referencingMatthias Clasen2006-06-291-0/+3
|
* Improve docsMatthias Clasen2006-06-291-0/+6
|
* Documentation additions and fixes.Matthias Clasen2006-06-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Correctly register the done signal - it sends an enum, not an int.Murray Cumming2006-06-201-2/+2
| | | | | | | 2006-06-20 Murray Cumming <murrayc@murrayc.com> * gtk/gtkprintoperation.c: (gtk_print_operation_class_init): Correctly register the done signal - it sends an enum, not an int.
* When starting a preview from the print dialog, set the action to PREVIEW.Matthias Clasen2006-06-161-4/+3
| | | | | | | | | 2006-06-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation-unix.c (handle_print_response): When starting a preview from the print dialog, set the action to PREVIEW. * gtk/gtkprintoperation.c: Cosmetic changes.
* Use cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.Matthias Clasen2006-06-111-1/+1
| | | | | | | | | 2006-06-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c: * modules/printbackends/pdf/gtkprintbackendpdf.c: Use cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution. (#344512, Elijah Newren)
* Register create_custom_widget as an object-returning signal. (#344505,Matthias Clasen2006-06-111-4/+4
| | | | | | | | | | 2006-06-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c: Register create_custom_widget as an object-returning signal. (#344505, Marko Anastasov, patch by Christian Persch) * gtk/gtkmarshalers.list: Add the right marshaller.
* fix buildMatthias Clasen2006-06-091-8/+9
|
* Don't include gtkprinter-private.h here.Matthias Clasen2006-06-081-6/+8
| | | | | | | | | | | | | | | 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.
* Rename pdf_target to export_filenameMatthias Clasen2006-06-081-18/+19
|
* Get rid of GTK_PRINT_OPERATION_RESULT_PREVIEW.Matthias Clasen2006-06-081-8/+5
| | | | | | | | | | 2006-06-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.h (GtkPrintOperationResult): Get rid of GTK_PRINT_OPERATION_RESULT_PREVIEW. * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.c: Update all users.
* Update windows to build with new APIs and first cut at preview work.Alexander Larsson2006-06-081-21/+15
| | | | | | | | | | | | | | | | 2006-06-08 Alexander Larsson <alexl@redhat.com> * gtk/gtkprintoperation-win32.c: Update windows to build with new APIs and first cut at preview work. * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.c Various updates needed when making the preview work on win32. * tests/print-editor.c: Print, don't preview.
* Add more docs, cleanupsMatthias Clasen2006-06-081-62/+63
|
* Add some docs.Matthias Clasen2006-06-081-2/+13
| | | | | | | | | | 2006-06-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c: Add some docs. * gtk/gtk.symbols: Add gtk_print_operation_set_allow_async. * gtk/gtkprintoperation.h: Remove gtk_print_operation_run_async.
* Clean up APIs: Make async a setting instead of separate calls. CombineAlexander Larsson2006-06-071-178/+185
| | | | | | | | | | | | | | | | | | | 2006-06-07 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.[ch]: Clean up APIs: Make async a setting instead of separate calls. Combine settings like show_dialog, show_preview and pdf_target into an action enum that you pass to gtk_print_dialog_run(). * tests/print-editor.c: * tests/testnouiprint.c: * tests/testprint.c: * demos/gtk-demo/printing.c: Update to new APIs
* 2.9.2GTK_2_9_2Matthias Clasen2006-06-051-5/+5
|
* Add a GtkPrintOperation::show-preview propertyMatthias Clasen2006-06-031-1/+53
|
* Add gtkprintoperationpreview.[ch] Set default preview command. HardcodedAlexander Larsson2006-06-021-65/+407
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* bits from the preview patchMatthias Clasen2006-06-011-25/+33
|
* add docsMatthias Clasen2006-06-011-2/+70
|
* Don't treat manual_scale like a percentage, its a factor.Matthias Clasen2006-05-311-1/+1
| | | | | | | 2006-05-31 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c (print_pages_idle): Don't treat manual_scale like a percentage, its a factor.
* Change some function names to be longer and better.Matthias Clasen2006-05-311-3/+3
| | | | | | | | | | | | | | | 2006-05-31 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintcontext.h: * gtk/gtkprintcontext.c: * gtk/gtkprintoperation.c: * gtk/gtkprintoperation-unix.c: Change some function names to be longer and better. gtk_print_context_get_cairo -> gtk_print_context_get_cairo_context gtk_print_context_get_fontmap -> gtk_print_context_get_pango_fontmap gtk_print_context_create_context -> gtk_print_context_create_pango_context gtk_print_context_create_layout -> gtk_print_context_create_pango_layout Update all callers.
* Custom tab labelMatthias Clasen2006-05-241-1/+53
|
* Do the begin-print emission in the idle, so that the print dialog goesMatthias Clasen2006-05-231-30/+31
| | | | | | | | 2006-05-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c (print_pages): Do the begin-print emission in the idle, so that the print dialog goes away before begin-print.
* Add a boolean show-progress property, and show a progress dialog if it isMatthias Clasen2006-05-231-17/+174
| | | | | | | | | | | | | | | | 2006-05-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintoperation.h: * gtk/gtkprintoperation.c: Add a boolean show-progress property, and show a progress dialog if it is set to TRUE. * gtk/gtkprintoperation.c (pdf_end_run): * gtk/gtkprintoperation-win32.c (win32_end_run): * gtk/gtkprintoperation-unix.c (unix_end_run): * gtk/gtkprintoperation-private.h: Add a cancelled parameter to end_run, and call it even if the print operation was cancelled.
* fix docsMatthias Clasen2006-05-221-1/+4
|
* Make sure grab-notify is emitted on toplevels as well as child widgets.Alexander Larsson2006-05-221-6/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-22 Alexander Larsson <alexl@redhat.com> * gtk/gtkmain.c: Make sure grab-notify is emitted on toplevels as well as child widgets. * gtk/Makefile.am: * gtk/gtkwin32embedwidget.[ch] Add new widget used for win32 port to embed gtk+ widgets in windows dialog. * gtk/gtkmarshalers.list: Add POINTER:VOID * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation.[ch]: Generic support for custom widgets in print dialog. * gtk/gtkprintoperation-win32.c: Implement custom widget support for win32. * tests/print-editor.c: Allow setting of font using custom widgets in the print dialog.
* New function to cancel a running print operation.Matthias Clasen2006-05-191-6/+35
| | | | | | | | | | | | | | | 2006-05-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintoperation.h: * gtk/gtkprintoperation.c (gtk_print_operation_cancel): New function to cancel a running print operation. * gtk/gtkprintoperation-private.h (struct _GtkPrintOperationPrivate): Add a cancelled flag, use g types, use bitfields. * gtk/gtkprintoperation.c (print_pages): Clean up after the idle in the synchronous case.