LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-27-2004, 12:00 PM   #1
szparag
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
GTK and C : how to view list of gpointer children


hi.

i have a problem with getting list of GTK elements.
i'm using GLADE-2 to build interfaces and i have to configure callbacks manually.
this isn't so hard when i'm using simple pointers passing to callback functions, for example pointers to label or button. but i don't know how to get children list when i'm passing containers which contains more elements (for example: frame with label, text entry and image) ...

how to get list (and easy access) to GTK container children having his gpointer ???
 
Old 12-10-2004, 08:59 AM   #2
pelatrix
LQ Newbie
 
Registered: Dec 2004
Location: Rosario
Distribution: Debian (sucks)
Posts: 2

Rep: Reputation: 0
Glade provides a function named lookup_widget.
Look at the code generated by Glade, and you'll find that every widget has a name and a relation with him parents.
Providing any reference in the tree and the name of the widget you want to look up for, lookp_widget will return to you the pointer to that widget.

Look at at prototype, and you'll understand.

Sorry about my english.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
view list of created users only ALInux Linux - General 5 11-10-2005 01:28 PM
Nautilus View as List Barserk Linux - Software 2 08-07-2005 07:58 PM
view a rpm list. bruse Linux - Newbie 2 05-01-2005 03:45 PM
how to view a very very long list of results Niceman2005 Linux - Newbie 4 01-09-2005 11:18 PM
Cannot view list of users at this time. Wolverine Linux - Networking 6 10-20-2001 07:05 AM


All times are GMT -5. The time now is 11:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration