]> Pileus Git - ~andy/gtk/commit - modules/printbackends/cups/gtkprintercups.c
Added new symbols
authorAlexander Larsson <alexl@redhat.com>
Thu, 4 May 2006 13:43:32 +0000 (13:43 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Thu, 4 May 2006 13:43:32 +0000 (13:43 +0000)
commitc36d8f3cb3781db3cf41b1888c7daf8487324d78
treed2ca4427d7aabba33cc64b05f96f4a261334064c
parent89b5cb64808fe544a4e0c6717bdb0c24908097b0
Added new symbols

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.
20 files changed:
ChangeLog
ChangeLog.pre-2-10
gtk/gtk.symbols
gtk/gtkpagesetupunixdialog.c
gtk/gtkprintbackend.c
gtk/gtkprintbackend.h
gtk/gtkprinter.c
gtk/gtkprinter.h
gtk/gtkprintoperation-private.h
gtk/gtkprintoperation-unix.c
gtk/gtkprintoperation.c
gtk/gtkprintunixdialog.c
modules/printbackends/cups/gtkcupsutils.c
modules/printbackends/cups/gtkcupsutils.h
modules/printbackends/cups/gtkprintbackendcups.c
modules/printbackends/cups/gtkprintercups.c
modules/printbackends/lpr/gtkprintbackendlpr.c
modules/printbackends/pdf/gtkprintbackendpdf.c
tests/Makefile.am
tests/testnouiprint.c [new file with mode: 0644]