I'm considering using Glade in a project I'm working on. I've played around
with it enough to generate a moderately interesting window o' widgets, build
the source code from that, and run the executable.
It seems that for each window, Glade puts all the widget creation and layout
code into a single .c file, overwriting the previous contents of that .c
file. (The top of the file contains a warning not to modify the contents for
this reason.)
I often run into cases where I want to change something about the state of a
widget at runtime in response to actions taken elsewhere. For a simple
example, if I have some buttons that act on the selected item of a list, and
the list has no selection, I want to make the buttons insensitive. I don't
see how to do this using Glade. I can attach callbacks to the list so that I
notice the selection changing, but I don't see how to access the buttons
from the callback without modifying the .c file created by Glade (to store
pointers to certain widgets away in variables somewhere).
Of course, I can create the first pass at my widget layout using Glade and
then modify the file it creates, giving up the ability to use Glade to
modify the widget layout later. This is still useful, but not as useful as
the ability to modify the layout later would be.
And then, it's always possible that I'm overlooking the obvious. Is there
some way to access specific Glade-created widgets without modifying the
files that Glade overwrites?
Thanks for any help,
John Sullivan
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.