• Allison Karlitskaya's avatar
    GtkModelMenuItem: add a submenu action attribute · 338b5f6c
    Allison Karlitskaya authored
    Add support for a stateful action associated with a submenu.  The action
    state is set to TRUE when the menu is shown and FALSE when it is
    This is useful to avoid unnecessary processing for menus that have
    frequently-changing content.
    A possible future feature is to add support for asynchronously filling
    the initial state of the menu by waiting until the action actually emits
    its state-change signal to TRUE before showing the menu.
    A silly example has been added to Bloatpad to demonstrate the new
gtkmodelmenuitem.c 8.44 KB