]> Pileus Git - ~andy/gtk/commit
printing: Make sure destroy function is always called by gtk_enumerate_printers
authorCarlos Garcia Campos <cgarcia@igalia.com>
Thu, 15 Mar 2012 11:10:52 +0000 (12:10 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 15 Mar 2012 13:47:33 +0000 (14:47 +0100)
commit5ebfad5d091f4c9d9c6e60364fad4c60842f027f
tree4f733175e9865d3fc975d0d7e596faef5d10c1b8
parent3778999a64b5bd17fe28636e9ed51706a812965f
printing: Make sure destroy function is always called by gtk_enumerate_printers

When GtkPrinterFunc always returns FALSE, for example when looking for
a non existent printer, if print list is done for all backends or print
backend status is UNAVAILABLE, gtk_enumerate_printers() finishes with an
empty backend list and destroy function is never called. We need to
check the backend list again after calling list_printers_init for all
backends and finish the enumeration if it's empty.

https://bugzilla.gnome.org/show_bug.cgi?id=672125
gtk/gtkprinter.c