+ {
+ GSimpleAction *act_insert_variable = g_simple_action_new ("insert-variable", NULL);
+ g_signal_connect_swapped (act_insert_variable, "activate", G_CALLBACK (insert_variable), de);
+ g_action_map_add_action (G_ACTION_MAP (de), G_ACTION (act_insert_variable));
+ }
+
+ {
+ GSimpleAction *act_jump_to_case = g_simple_action_new ("jump-to-case", NULL);
+ g_signal_connect_swapped (act_jump_to_case, "activate", G_CALLBACK (goto_case), de);
+ g_action_map_add_action (G_ACTION_MAP (de), G_ACTION (act_jump_to_case));
+ }
+
+ {
+ GSimpleAction *act_insert_case = g_simple_action_new ("insert-case", NULL);
+ g_signal_connect_swapped (act_insert_case, "activate", G_CALLBACK (insert_case_at_row), de);
+ g_action_map_add_action (G_ACTION_MAP (de), G_ACTION (act_insert_case));
+ }
+
+ {
+ GSimpleAction *find = g_simple_action_new ("find", NULL);
+ g_signal_connect_swapped (find, "activate", G_CALLBACK (find_dialog), de);
+ g_action_map_add_action (G_ACTION_MAP (de), G_ACTION (find));
+ }
+
+ {
+ int idx = 0;
+ {
+ GtkToolItem *ti = gtk_tool_button_new (NULL, "Open");
+ g_signal_connect_swapped (ti, "clicked", G_CALLBACK (psppire_window_open), de);
+ gtk_toolbar_insert (GTK_TOOLBAR (hb), ti, idx++);
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (ti), "pspp-file-open-data");
+ }
+
+ {
+ GtkToolItem *ti = gtk_tool_button_new (NULL, "Save");
+ g_signal_connect_swapped (ti, "clicked", G_CALLBACK (psppire_window_save), de);
+ gtk_toolbar_insert (GTK_TOOLBAR (hb), ti, idx++);
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (ti), "pspp-file-save-data");
+ }
+
+ gtk_toolbar_insert (GTK_TOOLBAR (hb), gtk_separator_tool_item_new (), idx++);
+
+ {
+ de->ti_jump_to_variable = gtk_tool_button_new (NULL, "Goto Var");
+
+ GAction *a = g_action_map_lookup_action (G_ACTION_MAP (de), "PsppireDialogActionVarInfo");
+ g_assert (a);
+ g_signal_connect_swapped (de->ti_jump_to_variable, "clicked",
+ G_CALLBACK (psppire_dialog_action_activate_null), a);
+
+ gtk_toolbar_insert (GTK_TOOLBAR (hb), de->ti_jump_to_variable, idx++);
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (de->ti_jump_to_variable), "pspp-edit-go-to-variable");
+ gtk_widget_set_tooltip_text (GTK_WIDGET (de->ti_jump_to_variable), _("Jump to variable"));
+ }
+
+ {
+ de->ti_jump_to_case = gtk_tool_button_new (NULL, "Jump to Case");
+
+ GAction *a = g_action_map_lookup_action (G_ACTION_MAP (de), "jump-to-case");
+ g_assert (a);
+ g_signal_connect_swapped (de->ti_jump_to_case, "clicked",
+ G_CALLBACK (g_action_activate_null), a);
+
+ gtk_toolbar_insert (GTK_TOOLBAR (hb), de->ti_jump_to_case, idx++);
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (de->ti_jump_to_case), "pspp-edit-go-to-case");
+ gtk_widget_set_tooltip_text (GTK_WIDGET (de->ti_jump_to_case), _("Jump to a case in the data sheet"));
+ }
+
+ {
+ de->ti_find = gtk_tool_button_new (NULL, "Find");
+
+ GAction *a = g_action_map_lookup_action (G_ACTION_MAP (de), "find");
+ g_assert (a);
+ g_signal_connect_swapped (de->ti_find, "clicked",
+ G_CALLBACK (g_action_activate_null), a);
+
+
+ gtk_toolbar_insert (GTK_TOOLBAR (hb), de->ti_find, idx++);
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (de->ti_find), "pspp-edit-find");
+ gtk_widget_set_tooltip_text (GTK_WIDGET (de->ti_find), _("Search for values in the data"));
+ }
+
+ {
+ de->ti_insert_case = gtk_tool_button_new (NULL, "Create Case");
+ GAction *a = g_action_map_lookup_action (G_ACTION_MAP (de), "insert-case");
+ g_assert (a);
+ g_signal_connect_swapped (de->ti_insert_case, "clicked",
+ G_CALLBACK (g_action_activate_null), a);
+
+ gtk_toolbar_insert (GTK_TOOLBAR (hb), de->ti_insert_case, idx++);
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (de->ti_insert_case), "pspp-edit-insert-case");
+ gtk_widget_set_tooltip_text (GTK_WIDGET (de->ti_insert_case), _("Create a new case at the current position"));
+ }
+
+ {
+ de->ti_insert_variable = gtk_tool_button_new (NULL, "Create Variable");
+ GAction *a = g_action_map_lookup_action (G_ACTION_MAP (de), "insert-variable");
+ g_assert (a);
+ g_signal_connect_swapped (de->ti_insert_variable, "clicked",
+ G_CALLBACK (g_action_activate_null), a);
+
+ gtk_toolbar_insert (GTK_TOOLBAR (hb), de->ti_insert_variable, idx++);
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (de->ti_insert_variable), "pspp-edit-insert-variable");
+ gtk_widget_set_tooltip_text (GTK_WIDGET (de->ti_insert_variable), _("Create a new variable at the current position"));
+ }
+
+ gtk_toolbar_insert (GTK_TOOLBAR (hb), gtk_separator_tool_item_new (), idx++);