Skip to content
Snippets Groups Projects
Commit 4149ac4c authored by Danny Auble's avatar Danny Auble
Browse files

fix toggle to show grid is active when it is active.

parent 2b5946e0
No related branches found
No related tags found
No related merge requests found
...@@ -348,7 +348,7 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook) ...@@ -348,7 +348,7 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook)
GtkToggleActionEntry toggle_entries[] = { GtkToggleActionEntry toggle_entries[] = {
{"grid", NULL, "Show _Grid", {"grid", NULL, "Show _Grid",
"<control>g", "Visual display of cluster", "<control>g", "Visual display of cluster",
G_CALLBACK(_set_grid)}, G_CALLBACK(_set_grid), TRUE},
{"admin", NULL, {"admin", NULL,
"_Admin Mode", "<control>a", "_Admin Mode", "<control>a",
"Allows user to change or update information", "Allows user to change or update information",
...@@ -367,10 +367,10 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook) ...@@ -367,10 +367,10 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook)
gtk_action_group_add_toggle_actions(action_group, toggle_entries, gtk_action_group_add_toggle_actions(action_group, toggle_entries,
G_N_ELEMENTS(toggle_entries), G_N_ELEMENTS(toggle_entries),
NULL); NULL);
ui_manager = gtk_ui_manager_new (); ui_manager = gtk_ui_manager_new();
gtk_ui_manager_insert_action_group (ui_manager, action_group, 0); gtk_ui_manager_insert_action_group(ui_manager, action_group, 0);
accel_group = gtk_ui_manager_get_accel_group (ui_manager); accel_group = gtk_ui_manager_get_accel_group(ui_manager);
gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group);
if (!gtk_ui_manager_add_ui_from_string (ui_manager, ui_description, if (!gtk_ui_manager_add_ui_from_string (ui_manager, ui_description,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment