newitem_base


Description:

public void newitem_base (Menuitem item, MenuItem gmi, Menuitem parent)

This function provides some of the basic connectivity for being in the GTK world.

Things like visibility and sensitivity of the item are handled here so that the subclasses don't have to. If you're building your on GTK menu item you can use this function to apply those basic attributes so that you don't have to deal with them either.

This also handles passing the "activate" signal back to the Menuitem side of thing.

Parameters:

this

The client handling everything on this connection

item

The Menuitem to attach the GTK-isms to

gmi

A MenuItem representing the GTK world's view of this menuitem

parent

The parent Menuitem




2022 vala-language.org