Removing managed widgets



Dear all,

Is it possible to delete a managed widget from its parent, when it is needed?

A Simple example:

class MyBin : Gtk::Bin
{
public:
	MyBin():
	Gtk::Bin, button(Gtk::manage(new Button("Label")))
	{}

	void deleteButton()
	{
	    delete button;
		button = 0;
	}
	
private:
	Gtk::Button *button;
}


Thanks and  Best Regards,
Joaquim Duran


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]