|
I am trying to write a class that derives from Gtk::VBox called Contacts, the idea is to pack every widget necessary to display and retrieve data from the user. This class will be passed to a Gtk::Notebook::append_page as te widget to be displayed.
The class compiles just fine, but at the point where I add the Gtk::HBox object to the Gtk::VBox derived class the program craches/segmentation fault.
Could someone please tell me what I am doing wrong?
Here is the example:
==========
WinXP
MinGW-GCC
class Contacts : virtual public Gtk::VBox{
protected:
Gtk::HBox hbox1;
Gtk::HBox hbox2;
public:
Contacts();
virtual ~Contacts();
}; //class
jme::Contacts::Contacts(){
this->pack_start(hbox1); //Segmentation Fault
}
==============
TIA
_________________ * You cannot exercise your power to a point of humiliation.
- Jean Chretien
* It's amazing how the small seeds of distrust and misunderstanding
can yield a crop of hate and death...
Ma'assalama! Adiós! bye!
|