1. 10 Mar, 2007 1 commit
  2. 31 Dec, 2006 1 commit
    • Matthias Clasen's avatar
      Move a few settings to gtksettings.c to make sure they show up in the · 7979cd6a
      Matthias Clasen authored
      2006-12-30  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkprintoperation-unix.c:
              * gtk/gtkprintbackend.c:
              * gtk/gtkfilechooserdefault.c:
              * gtk/gtksettings.c: Move a few settings to gtksettings.c
              to make sure they show up in the docs.  (#365364, Christian
              Persch)
      
      
      
      svn path=/trunk/; revision=16992
      7979cd6a
  3. 22 Dec, 2006 1 commit
  4. 10 Sep, 2006 1 commit
  5. 31 Aug, 2006 1 commit
  6. 10 Jul, 2006 1 commit
  7. 30 Jun, 2006 1 commit
  8. 21 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      Apply a patch by John Palmieri to use buffered io using GIOChannels, clean · be8f3c72
      Matthias Clasen authored
      2006-06-21  Matthias Clasen  <mclasen@redhat.com>
      
      	Apply a patch by John Palmieri to use buffered io using
      	GIOChannels, clean up error handling and support Cups 1.2
      	api in the printing code.
      
      	* acconfig.h:
      	* configure.in: Detect Cups 1.2
      
      	* gtk/gtkdebug.h:
      	* gtk/gtkmain.c: Add a printing debug key.
      
      	* gtk/gtkprintbackend.[hc]: Remove the GError parameter from
      	gtk_print_backend_print_stream, and take a  GIOChannel instead
      	of an fd.
      
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c: Replace the fd parameter of
      	_gtk_printer_create_cairo_surface by a GIOChannel.
      
      	* gtk/gtkprintjob.[hc]: Remove the GError parameter from
      	gtk_print_job_send and make it return void.
      
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintjob.c: Adjust callers, add some debugging support.
      
      	* modules/printbackends/Makefile.am: Fix DIST_SUBDIRS.
      
      	* modules/printbackends/cups/Makefile.am:
      	* modules/printbackends/lpr/Makefile.am: Add debug CFLAGS.
      
      	* modules/printbackends/cups/gtkcupsutils.[hc]:
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	* modules/printbackends/file/gtkprintbackendfile.c:
      	* modules/printbackends/lpr/gtkprintbackendfile.c: Adapt to
      	the GIOChannel and GError changes, add debug output
      be8f3c72
  9. 19 Jun, 2006 1 commit
  10. 16 Jun, 2006 5 commits
  11. 11 Jun, 2006 1 commit
  12. 08 Jun, 2006 4 commits
    • Matthias Clasen's avatar
      Don't include gtkprinter-private.h here. · 480803d5
      Matthias Clasen authored
      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.
      480803d5
    • Matthias Clasen's avatar
      Get rid of GTK_PRINT_OPERATION_RESULT_PREVIEW. · 49e88d89
      Matthias Clasen authored
      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.
      49e88d89
    • Alexander Larsson's avatar
      Fix up unix fallout from previous change. · fd3b835e
      Alexander Larsson authored
      2006-06-08  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkprintoperation-unix.c (finish_print):
      	Fix up unix fallout from previous change.
      fd3b835e
    • Alexander Larsson's avatar
      Update windows to build with new APIs and first cut at preview work. · 79041f07
      Alexander Larsson authored
      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.
      79041f07
  13. 07 Jun, 2006 1 commit
    • Alexander Larsson's avatar
      Clean up APIs: Make async a setting instead of separate calls. Combine · 9bea3859
      Alexander Larsson authored
      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
      9bea3859
  14. 03 Jun, 2006 2 commits
  15. 02 Jun, 2006 1 commit
    • Alexander Larsson's avatar
      Add gtkprintoperationpreview.[ch] Set default preview command. Hardcoded · fad69ba0
      Alexander Larsson authored
      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.
      fad69ba0
  16. 01 Jun, 2006 2 commits
  17. 31 May, 2006 1 commit
    • Matthias Clasen's avatar
      Change some function names to be longer and better. · 084729ac
      Matthias Clasen authored
      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.
      084729ac
  18. 24 May, 2006 2 commits
    • Matthias Clasen's avatar
      Custom tab label · 7f6f61c9
      Matthias Clasen authored
      7f6f61c9
    • Alexander Larsson's avatar
      Add gtk_print_unix_dialog_set_manual_capabilities that controls what · 70376f28
      Alexander Larsson authored
      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.
      70376f28
  19. 23 May, 2006 2 commits
    • Matthias Clasen's avatar
      Add a boolean show-progress property, and show a progress dialog if it is · 57a052b0
      Matthias Clasen authored
      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.
      57a052b0
    • Alexander Larsson's avatar
      Add gtk_print_unix_dialog_add_custom_tab · 07d2dd17
      Alexander Larsson authored
      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.
      07d2dd17
  20. 15 May, 2006 1 commit
    • Alexander Larsson's avatar
      Added gtk_print_job_set/get_track_print_status · 3f529199
      Alexander Larsson authored
      2006-05-15  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkprintjob.[ch]:
      	Added gtk_print_job_set/get_track_print_status
      
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation.[ch]:
      	Add gtk_print_operation_set_track_print_status.
      
      	* gtk/gtkprintoperation-unix.c:
      	Implement track_print_status on unix
      
      	* gtk/gtkprintoperation-win32.c:
      	Implement track_print_status on win32
      
      	* gtk/gtk.symbols:
      	Added symbols
      
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	Implement track_print_status for cups
      
      	* tests/print-editor.c:
      	Test track_print_status.
      3f529199
  21. 05 May, 2006 1 commit
    • Alexander Larsson's avatar
      Implement per-page paper sizes. · 719050ed
      Alexander Larsson authored
      2006-05-05  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkprintoperation-unix.c:
      	Implement per-page paper sizes.
      
      	* gtk/gtkprintoperation.c:
      	Implement per-page paper sizes for pdf output.
      	Make gtk_print_operation_set_pdf_target() work again
      
      	* tests/Makefile.am:
      	* tests/testprint.c:
      	* tests/testprintfileoperation.[ch]:
      	Add more test code for printing support.
      	This tests per-page paper sizes & orientation and
      	deriving from GtkPrintOperation.
      719050ed
  22. 04 May, 2006 1 commit
    • Alexander Larsson's avatar
      Added new symbols · c36d8f3c
      Alexander Larsson authored
      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.
      c36d8f3c
  23. 03 May, 2006 1 commit
  24. 02 May, 2006 1 commit
    • Christian Persch's avatar
      Use a priv variable when accessing priv multiple times in the same · 061f2528
      Christian Persch authored
      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.
      061f2528
  25. 24 Apr, 2006 5 commits
    • Matthias Clasen's avatar
      forgotten files · 7437609e
      Matthias Clasen authored
      7437609e
    • Matthias Clasen's avatar
      Refactor the gtk_print_operation_run() code and add an _async version. · 2e9cc2f6
      Matthias Clasen authored
      2006-04-24  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprintoperation.c (gtk_print_operation_run_async): Refactor the
      	gtk_print_operation_run() code and add an _async version.
      
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c
      	(_gtk_print_operation_platform_backend_run_dialog_async)
      	(gtk_print_run_page_setup_dialog_async): Variants of the run functions
      	which don't call gtk_dialog_run(), but only show the dialog and return,
      	and handle the response in a signal handler.
      
      	* gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog_async)
      	(_gtk_print_operation_platform_backend_run_dialog_async): Implement these
      	by calling the sync versions.
      2e9cc2f6
    • Matthias Clasen's avatar
      Cleanups · 9523e186
      Matthias Clasen authored
      9523e186
    • Matthias Clasen's avatar
      Return a copy of the original page setup if the dialog was canceled. · 3d07d219
      Matthias Clasen authored
      2006-04-24  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog):
      	Return a copy of the original page setup if the dialog was canceled.
      3d07d219
    • Matthias Clasen's avatar
      Match parameter names with the headers. · 0d10969b
      Matthias Clasen authored
      2006-04-24  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkclipboard.h:
      	* gtk/gtkprinter.c:
      	* gtk/gtkprintsettings.h:
      	* gtk/gtkprintsettings.c: Match parameter names with the headers.
      
      	* gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog):
      	Add docs.
      
      	* gtk/gtktextbufferrichtext.c (gtk_text_buffer_deserialize):
      	* gtk/gtkstatusicon.c (gtk_status_icon_get_storage_type):
      	* gtk/gtktreeview.c (gtk_tree_view_set_search_position_func):
      	* gtk/gtktreeview.c (gtk_tree_view_get_headers_clickable):
      	* gtk/gtkcellrendererspin.c (gtk_cell_renderer_spin_new):
      	* gtk/gtkmenu.c (gtk_menu_get_for_attach_widget): Fix the docs.
      0d10969b