diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-03 08:01:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-03 08:09:56 -0700 |
commit | 8b021de8d9838f4591b50cb15fc8774c31f8ed14 (patch) | |
tree | b652db9bebc4cc304b9b2f649646b829cad397c7 | |
parent | f4f5536baddf8dc7dc8ed9e913eabbc904960f94 (diff) | |
download | subsurface-8b021de8d9838f4591b50cb15fc8774c31f8ed14.tar.gz |
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>
-rw-r--r-- | gtk-gui.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -815,6 +815,7 @@ static GtkWidget *get_menubar_menu(GtkWidget *window, GtkUIManager *ui_manager) { GtkActionGroup *action_group = gtk_action_group_new("Menu"); 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_ui_manager_insert_action_group(ui_manager, action_group, 0); |