mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 08:33:23 +00:00
Correctly initialize the toggle state of the autogroup menu entry
If we move to Linus' tri-state variable we need to separate those two items, anyway. But for now this fixes the obvious bug. Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f4f5536bad
commit
8b021de8d9
1 changed files with 1 additions and 0 deletions
|
@ -815,6 +815,7 @@ static GtkWidget *get_menubar_menu(GtkWidget *window, GtkUIManager *ui_manager)
|
||||||
{
|
{
|
||||||
GtkActionGroup *action_group = gtk_action_group_new("Menu");
|
GtkActionGroup *action_group = gtk_action_group_new("Menu");
|
||||||
gtk_action_group_add_actions(action_group, menu_items, nmenu_items, 0);
|
gtk_action_group_add_actions(action_group, menu_items, nmenu_items, 0);
|
||||||
|
toggle_items[0].is_active = autogroup;
|
||||||
gtk_action_group_add_toggle_actions(action_group, toggle_items, ntoggle_items, 0);
|
gtk_action_group_add_toggle_actions(action_group, toggle_items, ntoggle_items, 0);
|
||||||
|
|
||||||
gtk_ui_manager_insert_action_group(ui_manager, action_group, 0);
|
gtk_ui_manager_insert_action_group(ui_manager, action_group, 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue