Re: Differences and similarities between gtk_menu_set_active, gtk_menu_shell_activate_item and gtk_menu_shell_select_item



2008/6/24 BJörn Lindqvist <bjourne gmail com>:
> gtk_menu_shell_activate_item activates an item in a
> GtkMenuShell which presumedly is the same thing as setting the active
> item, isn't it?

Not really. Activating means that the "activate" signal is emitted for
the item. Selecting means that the item is painted blue etc.

The gtk_menu_get/set_active() seem like badly worded and
half-duplicated gtk_menu_shell_select_item() and the non-existing
gtk_menu_shell_get_selected_item() to me. There seems to be no way to
get the currently selected item at all with the menu shell API.

The whole menu API is in dire need of review & redefinition... :(

-- 
Kalle Vahlman, zuh iki fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]