GNOME Bugzilla – Bug 340676
print backend type modules not correctly reregistering their types
Last modified: 2006-05-05 20:22:30 UTC
The print backends behave incorrectly when registering their types: they check whether the type was already registered and only register it if it was not. But when using gtypemodule, the types *need* to be reregistered every time the type module is loaded. This becomes a problem when you force the underlying gmodule to be resident (for debugging purposes): then the print backend won't load a 2nd time.
Created attachment 64829 [details] [review] simple fix
Looks good to me, and matches what other modules in GTK+ do.
2006-05-05 Christian Persch <chpe@cvs.gnome.org> * modules/printbackends/cups/gtkprintbackendcups.c: * modules/printbackends/lpr/gtkprintbackendlpr.c: * modules/printbackends/pdf/gtkprintbackendpdf.c: Always register the type with the type module, even if it had been registered before. Fixes bug #340676.