I have a Window object which contains only a grid. I want to use Gtk::Builder to get a pointer to the grid, and then use some Gtk::Box's Gtk::Box->pack_end()
to add the grid to it many times (with manipulated contents each time).
Though each time that pack_end()
is called I get:
gtk_box_pack: assertion 'gtk_widget_get_parent (child) == NULL' failed
in my terminal and nothing gets added to the box.
What should I do?
Thanks
* EDIT:
Goal:
I want entries of a DB table to be put into a fancy widget for each record, though all the records being shown vertically one after the other. I thought I can create the fancy widget as a window in Glade and use Gtk::Builder to get a pointer to it. So in the fancy's Glade file I have a window containing a grid that has my custom appearance. I get the above error when I try to add
the pointer to the fancy *grid*
, to
the visible window's Box
. I hope I'm clear.