I really have a lot of questions today..
:-)
I am still working with Gtk::Fixed.
I do need exact positioning; hopefully I should be
able to handle everything I need with widgets and not need to draw anything.
What I need is to display a number of multimedia elements (bitmaps,
text and video clips) and having them appearing, disappearing and moving on
screen. I want to use widgets (one widget for each
multimedia element) because it seems an easy way, but I am not too sure
now.
As mentioned in the subject, I want to add and
remove Gtk::Widgets (for the time being just Gtk::Images and Gtk::Labels) to and
from the Fixed container.
I add with Fixed::put(), and remove with
Container::remove() -as there is no specific remove method in
Fixed.
The troubles arise when I try to add again
something that I had previously removed. In this case I get assertion fail and
segmentation fault.
Can anyone suggest why?
Is there any other way of doing what I need? (in
worse case, if adviceable, I might go for some other
library/toolkit...)
If it can be usefut: I keep track of the widgets
that I display with a collection of pointers to Gtk::Widget, then I use this
collection to compare what I want to display next with what I have on screen,
and then add, move or remove elements.
Thank you very much in advance.
Enrico
|