#67 Add spport for ToggleItem to ROX-Lib menu system.

closed-accepted
nobody
None
5
2004-04-17
2004-04-15
Ken Hayber
No

This patch adds a new class, ToggleItem, to ROX-Lib2's
Menu.py. This class can be used in the Action-based
menu system to support Toggle (check) menu items. The
class provides an initial 'state' parameter to set the
starting state of the item. It also stores the
gtk.CheckMenuItem widget in its .widget memer so that
the value of the menu can be toggled under application
control. This patch is against ROX-Lib2 1.9.13.

Discussion

  • Ken Hayber
    Ken Hayber
    2004-04-15

    Add spport for ToggleItem to ROX-Lib menu system.

     
  • Thomas Leonard
    Thomas Leonard
    2004-04-17

    • status: open --> closed-accepted
     
  • Thomas Leonard
    Thomas Leonard
    2004-04-17

    Logged In: YES
    user_id=40461

    This patch doesn't cope with the fact that a single menu may
    be used by multiple windows (with different values of the
    option).

    I've applied a modified version which takes the name of a
    property instead.