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 90046 - An object of type 'gtkmm__[XYZ]' was created directly via g_object_new().
An object of type 'gtkmm__[XYZ]' was created directly via g_object_new().
Status: VERIFIED FIXED
Product: libglademm
Classification: Other
Component: general
git master
Other other
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
: 90095 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-08-06 20:42 UTC by Martin Schulze
Modified: 2011-01-16 23:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Schulze 2002-08-06 20:42:02 UTC
Running any app that loads something out of an xml file with libglademm, a
bunch of warnings is printed on stderr. E.g. the output of the example
'basic' reads:

(lt-basic:9356): glibmm-WARNING **: Glib::Object::Object(GObject*): An
object of type 'gtkmm__GladeXML' was created directly via g_object_new().
The Object::Object(const Glib::ConstructParams&) constructor should be used
instead.
This could happen if the C instance lived longer than the C++ instance, so
that a second C++ instance was created automatically to wrap it. That would
be a gtkmm bug that you should report.

(lt-basic:9356): glibmm-WARNING **: Glib::Object::Object(GObject*): An
object of type 'gtkmm__GtkDialog' was created directly via g_object_new().
The Object::Object(const Glib::ConstructParams&) constructor should be used
instead.
This could happen if the C instance lived longer than the C++ instance, so
that a second C++ instance was created automatically to wrap it. That would
be a gtkmm bug that you should report.

(lt-basic:9356): gtkmm-WARNING **: gtkmm: Attempt to call Gtk::manage() on
a Gtk::Window, but a Gtk::Window has no parent container to manage its
lifetime.

(lt-basic:9356): glibmm-WARNING **: Glib::Object::Object(GObject*): An
object of type 'gtkmm__GtkButton' was created directly via g_object_new().
The Object::Object(const Glib::ConstructParams&) constructor should be used
instead.
This could happen if the C instance lived longer than the C++ instance, so
that a second C++ instance was created automatically to wrap it. That would
be a gtkmm bug that you should report.


Since I'm not sure whether this is a libglademm or a gtkmm bug I'm
reporting where the bug occurs.
Comment 1 Murray Cumming 2002-08-07 18:45:05 UTC
*** Bug 90095 has been marked as a duplicate of this bug. ***
Comment 2 Murray Cumming 2002-08-07 19:45:14 UTC
Fixed. You will need the latest gtkmm and libglademm from cvs.