GNOME Bugzilla – Bug 745065
GtkPrintOperation dialog creation fails when GTK is locally loaded
Last modified: 2015-03-05 01:45:56 UTC
When GTK+ is loaded locally, ie, with dlopen(xxx, RTLD_LOCAL), gtk_print_operation_run() fails with: Gtk-CRITICAL **: Error building template class 'GtkPrintUnixDialog' for an instance of type 'GtkPrintUnixDialog': Invalid object type `GtkPrinterOptionWidget' on line 567 This is because the dlsym() lookup for gtk_printer_option_widget_get_type fails. This is similar to the problem report in bug #710096. It seems that either the gtkprinteroptionwidget.c should get added to gtktypefuncs.c, or GtkPrintUnixDialog should have a g_type_ensure for GtkPrinterOptionWidget.
Would you consider adding a g_type_ensure(GTK_TYPE_PRINTER_OPTION_WIDGET) just for this case because it is a private type that I can't do a g_type_ensure() for externally. Calling gtk_test_register_all_types() doesn't load it either.
yes
it should probably go in the class init of GtkPrintUnixDialog
Thanks. Do you mind cherry-picking to 3.14 also?