aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-03 08:01:21 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-03 08:09:56 -0700
commit8b021de8d9838f4591b50cb15fc8774c31f8ed14 (patch)
treeb652db9bebc4cc304b9b2f649646b829cad397c7
parentf4f5536baddf8dc7dc8ed9e913eabbc904960f94 (diff)
downloadsubsurface-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 03d2862c1..a2f130ac2 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -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);