1. 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.
  2. 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
      	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.
      	  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.
  3. 03 May, 2006 1 commit
  4. 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.
  5. 24 Apr, 2006 5 commits
    • Matthias Clasen's avatar
      forgotten files · 7437609e
      Matthias Clasen authored
    • 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_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.
    • Matthias Clasen's avatar
      Cleanups · 9523e186
      Matthias Clasen authored
    • 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.
    • 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.
  6. 21 Apr, 2006 1 commit
    • Alexander Larsson's avatar
      Merge the gtk-printing branch. For more detailed ChangeLog entries, see · 27f746fb
      Alexander Larsson authored
      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.