GtkWidget *sorted_button;
GtkWidget *needs_sort_button;
+
+ GtkWidget *pane;
};
}
+/* Set the pane to 50% of its maximum size */
+static void
+set_initial_pos (GtkPaned *pane)
+{
+ int max_pos;
+ g_object_get (pane,
+ "max-position", &max_pos,
+ NULL);
+
+ gtk_paned_set_position (pane, max_pos / 2);
+}
+
+
+
/* Pops up the Aggregate dialog box */
void
aggregate_dialog (PsppireDataWindow *dw)
source = get_widget_assert (fd.xml, "dict-view");
break_selector = get_widget_assert (fd.xml, "break-selector");
+ fd.pane = get_widget_assert (fd.xml, "hbox1");
+
fd.break_variables = get_widget_assert (fd.xml, "psppire-var-view1");
fd.filename_radiobutton = get_widget_assert (fd.xml, "filename-radiobutton");
fd.filename_button = get_widget_assert (fd.xml, "filename-button");
g_signal_connect_swapped (fd.summary_arg1_entry, "changed", G_CALLBACK (update_acr), &fd);
g_signal_connect_swapped (fd.summary_arg2_entry, "changed", G_CALLBACK (update_acr), &fd);
+
+ g_signal_connect (fd.pane, "realize", G_CALLBACK (set_initial_pos), &fd);
+
+
g_signal_connect_swapped (fd.function_combo, "changed",
G_CALLBACK (update_arguments), &fd);