GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Oct 01, 2014 8:19 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: dynamic allocation of GtkWidgets
PostPosted: Sun Jan 20, 2008 3:45 pm 
Offline
Familiar Face

Joined: Sun Jan 20, 2008 3:38 pm
Posts: 6
Hi,
I am a new GTK user, my question is how can i allocate dynamically an array of GtkWidgets ?

Thanks,
Oren


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 4:02 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
The widgets will allocate the space they need, you just need to allocate the space required to store the pointers to each widget. You could use a GArray if you wanted to, or simply declare a new pointer each time you need it.

Could probably provide a better answer if it was more clear what you're trying to accomplish.

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group