/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2005, 2006, 2010, 2011, 2012 Free Software Foundation
+ Copyright (C) 2005, 2006, 2010, 2011, 2012, 2015 Free Software Foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
{FMT_WKYR, 10, 0},
{FMT_WKYR, 8, 0},
{FMT_DATETIME, 17, 0},
- {FMT_DATETIME, 20, 0}
+ {FMT_DATETIME, 20, 0},
+ {FMT_YMDHMS, 16, 0},
+ {FMT_YMDHMS, 20, 0}
};
{
return PSPPIRE_VAR_TYPE_DIALOG (
g_object_new (PSPPIRE_TYPE_VAR_TYPE_DIALOG,
- "orientation", PSPPIRE_HORIZONTAL,
"format", format,
NULL));
}
-void
+gint
psppire_var_type_dialog_run (GtkWindow *parent_window,
struct fmt_spec *format)
{
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
gtk_widget_show (GTK_WIDGET (dialog));
- if (psppire_dialog_run (PSPPIRE_DIALOG (dialog)) == GTK_RESPONSE_OK)
+ gint result = psppire_dialog_run (PSPPIRE_DIALOG (dialog));
+ if (result == GTK_RESPONSE_OK)
*format = *psppire_var_type_dialog_get_format (dialog);
gtk_widget_destroy (GTK_WIDGET (dialog));
+
+ return result;
}
case FMT_MOYR:
case FMT_WKYR:
case FMT_DATETIME:
+ case FMT_YMDHMS:
+ case FMT_MTIME:
case FMT_TIME:
case FMT_DTIME:
case FMT_WKDAY: