I'm trying to figure out how to access a list of child widgets of a widget.
Specifically GtkTable child widgets to destroy them with GtkTable itself.

I'm not using Glade, I'm creating each widget "manually" from code and I can't store a pointer of each one (well, actually I could but I don't need this pointers except for its destruction after using them).

I found the function gtk_container_get_children and I tried to use it.

This code is executed in a signal callback.
Actually I simplified the code so table is member of a class, this class is passed as gpointer argument to function callback.

So when I wrote "table" actually is "control->table".
Anyway, I think I solved the problem... but don't know what I touch XD.
I think I had a name conflict between function variables and class member variables. Also I deleted that widget by widget deletion and I delete the entire gtktable at once.

I have another question, but is about progressBars, do I need to open a new thread?

Who is online

Users browsing this forum: No registered users and 5 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum