AppleOpenSource/WebKit2-7609.3.5.1.3/UIProcess/API/gtk/WebKitOptionMenu.cpp
/**
 * webkit_option_menu_select_item:
 * @menu: a #WebKitOptionMenu
 * @index: the index of the item
 *
 * Selects the #WebKitOptionMenuItem at @index in @menu. Selecting an item changes the
 * text shown by the combo button, but it doesn't change the value of the element. You need to
 * explicitly activate the item with webkit_option_menu_select_item() or close the menu with
 * webkit_option_menu_close() in which case the currently selected item will be activated.
 *
 * Since: 2.18
 */
@menu: a #WebKitOptionMenu
@index: the index of the item

Selects the #WebKitOptionMenuItem at @index in @menu. Selecting an item changes the
text shown by the combo button, but it doesn't change the value of the element. You need to
explicitly activate the item with webkit_option_menu_select_item() or close the menu with
webkit_option_menu_close() in which case the currently selected item will be activated.


@menu : a #WebKitOptionMenu @index : the index of the item Selects the #WebKitOptionMenuItem at @index in @menu . Selecting an item changes the text shown by the combo button but it doesn ' t change the value of the element . You need to explicitly activate the item with webkit_option_menu_select_item () or close the menu with webkit_option_menu_close () in which case the currently selected item will be activated .
void webkit_option_menu_select_item(WebKitOptionMenu* menu, guint index)
{
    g_return_if_fail(WEBKIT_IS_OPTION_MENU(menu));
    g_return_if_fail(index < menu->priv->items.size());
    menu->priv->popupMenu->selectItem(index);
}
void webkit_option_menu_select_item ( WebKitOptionMenu * menu , guint index ) { g_return_if_fail ( WEBKIT_IS_OPTION_MENU ( menu ) ) ; g_return_if_fail ( index < menu -> priv -> items . size ( ) ) ; menu -> priv -> popupMenu -> selectItem ( index ) ; }
webkit_option_menu_select_item:
 @menu: a #WebKitOptionMenu
 @index: the index of the item
webkit_option_menu_select_item : @menu : a #WebKitOptionMenu @index : the index of the item