[Gazpacho] adding support for gtk.ToggleAction and gtk.RadioAction
Michael Gratton
mike at vee.net
Sun May 14 13:18:22 CEST 2006
Hi guys,
I have started working on support for gtk.ToggleAction and
gtk.RadioAction in Gazpacho. This will let people add toggle and radio
menu items and toolbar buttons to their apps.
I have attached an initial patch to bug 341723
<http://bugzilla.gnome.org/show_bug.cgi?id=341723>. It allows you to
create and use toggle and radio actions, save and load them, but not
much else for the moment.
If anyone has time, I'd appreciate a bit of feedback on how I am
implementing this. Basically, I have subclassed GAction, GActionDialog
and ActionAdapter and added additional methods/callbacks as needed in
various places. Does this seem like a reasonable approach?
Also, the UI is a bit ugly with the two additional "Add" toolbar
buttons/menu items. I think using something like a gtk.MenuToolButton on
the toolbar might help, but UIManager does not seem to support it.
Comments welcome.
/mike
--
✌ michael gratton, itinerant geek
✇ <http://web.vee.net/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://sicem.biz/pipermail/gazpacho/attachments/20060514/3f9c25fd/attachment.pgp
More information about the Gazpacho
mailing list