GNOME Bugzilla – Bug 566143
Enumeration of printers seems non functional.
Last modified: 2009-01-02 12:29:20 UTC
Please describe the problem: Im unable to enumerate printers with gtkmm. With a small program to enumerate printers and dump some info on them i get a lot of errors. Such as: GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed Further more request details seems to not work at all. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information: This is on Ubuntu 8.10
Created attachment 125584 [details] Example program not working. Running this application on my system i get: tor@sid:~/tests/cpp_enumerate$ ./enumtest enumerating Printer:Print to File Details available... Name: Print to File No pagesetup available (enumtest:20970): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed Printer:QL-500 Request details. Name: QL-500 No pagesetup available Printer:tors Request details. Name: tors No pagesetup available (enumtest:20970): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `<invalid>' (enumtest:20970): GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed (enumtest:20970): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (enumtest:20970): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer (enumtest:20970): GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed (enumtest:20970): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
This is fixed with this commit: 2009-01-01 Armin Burgmeier <armin@openismus.com> * gtk/src/printer.ccg (SignalProxy_Custom_gtk_callback): Take a new reference on the passed printer object, so that we don't unref it at the end of the function (Tor Krill).