[Glade-users] Glade questions.



Andrae Muys wrote:

2.  Is there some way I can declare a "disable condition", and disable
lots of things at once in code?  One way might be if GLADE
automatically generated a function that I can call into.
Could you explain this further?

Basically the point is to define groups of things that you can disable
at once, especially menu items and stuff.  As far as I know GTK+ doesn't
support this, my thought was that Glade could support groups, and it
could automatically generate functions to toggle groups en masse.

3.  Is there any way to insert columns into a CList widget once created?
If you need this sort of behaviour I strongly recommend you take a look
at the ETable widget in GAL (although be aware this widget is GPL'd so
there may be license issues).

Sorry, I meant add a column within Glade.

5.  What's the best way to handle dynamic menus, both in the situation
where the whole menu is dynamic, and only part of the menu is dynamic?
In particular I can't find any way to create an empty submenu.
mmmm, 99 times out of 100 dynamic menus are a sign of poor UI design
:).  However in that one case where it is appropriate I believe you can
use a popup menu to build a static menu, otherwise AFAIK you will have
to handle the case manually for now.

Well, basically the idea was some menu items for common prefs.  For
example you could select a current proxy from a submenu, and obviously
the proxies wouldn't be static because they're user-defined.  MRU lists
are another obvious application.  I can't think of any other reasons to
consider them.

Furthermore, I'd like to suggest that you can bring up the menu editor
by double clicking a menu bar in the "window" window.
At the moment "Edit Menu" is an option in the right-click popup menu.

I didn't notice this, thanks.

-- 
         Matthew Tuck: Software Developer & All-Round Nice Guy
     My experience is that in general, if there's jobs programming
                 in it, it's not worth programming in.
Ultra Programming Language Project: http://www.box.net.au/~matty/ultra/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]