X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-scanf.c;h=52446b38922dadfab027ec8618e8ecebf3a3cda3;hb=76f722cdfd6475f8ae2d98139ea596adfcdb47be;hp=c2c8e55ade92df8cbf874e3733ad33c574ff73e0;hpb=90a008db8b2f6e5bec903e584eb68e9bb20c061e;p=pspp diff --git a/src/ui/gui/psppire-scanf.c b/src/ui/gui/psppire-scanf.c index c2c8e55ade..52446b3892 100644 --- a/src/ui/gui/psppire-scanf.c +++ b/src/ui/gui/psppire-scanf.c @@ -29,7 +29,7 @@ static void psppire_scanf_class_init (PsppireScanfClass *class); static void psppire_scanf_init (PsppireScanf *w); -G_DEFINE_TYPE (PsppireScanf, psppire_scanf, GTK_TYPE_HBOX) +G_DEFINE_TYPE (PsppireScanf, psppire_scanf, GTK_TYPE_BOX) /* Properties */ enum @@ -331,6 +331,7 @@ psppire_scanf_class_init (PsppireScanfClass *class) static void psppire_scanf_init (PsppireScanf *w) { + gtk_orientable_set_orientation (GTK_ORIENTABLE (w), GTK_ORIENTATION_HORIZONTAL); } gchar @@ -349,7 +350,7 @@ psppire_scanf_get_child (PsppireScanf *w, gint n) /* - This widget is a GtkHBox populated with GtkLabel and GtkEntry widgets. + This widget is a horizontal GtkBox populated with GtkLabel and GtkEntry widgets. Each conversion in FMT will cause a GtkEntry (possibly a GtkSpinButton) to be created. Any text between conversions produces a GtkLabel. There should be N arguments following FMT should be of type GtkEntry **,