Olivier Galibert wrote:
> 
> I need to be able to act on labels texts, lists contents, buttons
> states... on external events.  There is no way for now to access the
> required widgets, so I added one.

Glade does provide the lookup_widget() function to get pointers to
widgets.

 
> The patch adds a "Visibility" C property which can either "static" or
> "extern".  "static" is the good old way.  "extern" adds a
>   extern GtkWidget *blah;
> 
> in the interface.h file, and a
>   GtkWidget *blah;
> 
> in the interface.c file.

This approach isn't ideal since it only works if you have just one
instance of each window.

The other alternative that I started working on at one point is to
create a struct containing pointers to all the widgets. That works
for any number of instances of each window.

Damon


+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to