Draw radio action popup menu items as radio items
This commit is contained in:
parent
b23ae6cca3
commit
397dd423bd
1 changed files with 3 additions and 0 deletions
|
@ -758,6 +758,9 @@ sokoke_action_create_popup_menu_item (GtkAction* action)
|
||||||
menuitem = gtk_check_menu_item_new_with_mnemonic (label);
|
menuitem = gtk_check_menu_item_new_with_mnemonic (label);
|
||||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menuitem),
|
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menuitem),
|
||||||
gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)));
|
gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)));
|
||||||
|
if (GTK_IS_RADIO_ACTION (action))
|
||||||
|
gtk_check_menu_item_set_draw_as_radio (GTK_CHECK_MENU_ITEM (menuitem),
|
||||||
|
TRUE);
|
||||||
}
|
}
|
||||||
else if (stock_id)
|
else if (stock_id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue