Gtk::HBox in a Gtk::VBox, help!
- From: jalqadir netscape net (Jamiil )
- To: gtkmm-list gnome org
- Subject: Gtk::HBox in a Gtk::VBox, help!
- Date: Mon, 07 Nov 2005 22:36:42 -0500
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...
* If that document has fine printing anywhere, just chuck it in the garbage
- Jorge Escalante
Ma'assalama! Adiós! bye!
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]