After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566143 - Enumeration of printers seems non functional.
Enumeration of printers seems non functional.
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other All
: Normal major
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2008-12-31 15:25 UTC by Tor Krill
Modified: 2009-01-02 12:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Example program not working. (1.46 KB, text/x-c++src)
2008-12-31 15:28 UTC, Tor Krill
Details

Description Tor Krill 2008-12-31 15:25:54 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
Comment 1 Tor Krill 2008-12-31 15:28:37 UTC
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
Comment 2 Armin Burgmeier 2009-01-02 12:29:20 UTC
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).