ag = gtk_action_group_new("MenuActions"); gtk_action_group_add_actions(ag, actions, G_N_ELEMENTS(actions), jw); ui = gtk_ui_manager_new(); gtk_ui_manager_insert_action_group(ui, ag, 0); gtk_window_add_accel_group(GTK_WINDOW(jw), gtk_ui_manager_get_accel_group(ui)); if (!gtk_ui_manager_add_ui_from_string(ui, ui_desc, -1, &err)) {and then the awfulness of all of these function names and casts and never-ending revision hit me. I don't think I can deal with it anymore.
(Right here someone's gonna wanna comment and suggest [other language, probably C++] and I'm gonna laugh at you in advance.)