-
-static void
-dialog_set_orientation (PsppireDialog *dialog, const GValue *orval)
-{
- PsppireOrientation orientation = g_value_get_enum (orval);
-
- if ( dialog->box != NULL)
- {
- gtk_container_remove (GTK_CONTAINER (dialog), dialog->box);
- }
-
- switch ( orientation )
- {
- case PSPPIRE_HORIZONTAL:
- dialog->box = gtk_hbox_new (FALSE, 5);
- break;
- case PSPPIRE_VERTICAL:
- dialog->box = gtk_vbox_new (FALSE, 5);
- break;
- case PSPPIRE_TABULAR:
- dialog->box = gtk_table_new (2, 3, FALSE);
- g_object_set (dialog->box,
- "row-spacing", 5,
- "column-spacing", 5,
- NULL);
- break;
- }
-
- gtk_container_add (GTK_CONTAINER (dialog), dialog->box);
-}
-
-