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 97996 - member Adjustment assigned to managed Widget causes Gtk-WARNING at clean up
member Adjustment assigned to managed Widget causes Gtk-WARNING at clean up
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.0
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on: 97729
Blocks:
 
 
Reported: 2002-11-08 08:24 UTC by Chun-Chung Chen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chun-Chung Chen 2002-11-08 08:24:44 UTC
The following code demonstrates this problem at closing of the window. This
problem arises in 2.0.0 but not in 1.3.26

#include <gtkmm/main.h>
#include <gtkmm/window.h>
#include <gtkmm/adjustment.h>
#include <gtkmm/spinbutton.h>

struct Win :
	public Gtk::Window
{
	Gtk::Adjustment adj;
public:
	Win() :
		adj(0, 0, 10)
	{
		add(* Gtk::manage(new Gtk::SpinButton(adj)));
	}
	virtual ~Win() {};
};

int main(int argc, char *argv[])
{
	Gtk::Main mainloop(&argc, &argv);
	Win w;
	w.show_all();
	mainloop.run(w);
	return 0;
}
Comment 1 Murray Cumming 2002-11-10 14:35:46 UTC
I'm hoping that a general solution for #97729 will fix this too.
Comment 2 Murray Cumming 2002-11-14 02:23:58 UTC
This seems to be fixed in cvs. Please test.