GtkMenu::get_active

GtkMenu::get_active

GtkWidget get_active (void);

get_active() can be used to retrieve the currently selected GtkMenuItem object through the menu. Note that this method returns the menu item object itself, and is really only useful for comparison against a set of criteria. In most instances it would be more efficient to connect the individual menu item's "activate" signal.

The get_active() method is used internally in GtkOptionMenu's set_history() to compare the menu item currently selected by the user against that previously displayed.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.