testspinbutton: Orient box orthogonally to Spins
authorDaniel Boles <dboles@src.gnome.org>
Wed, 14 Mar 2018 22:37:34 +0000 (22:37 +0000)
committerDaniel Boles <dboles@src.gnome.org>
Wed, 14 Mar 2018 23:00:59 +0000 (23:00 +0000)
This makes better use of space.

tests/testspinbutton.c

index 9f8ada41fb86a4222a2ab4cb8a663383e9bf0d3d..96cf8cfdf9c753b707810cb1a9c0a1e290f5bab9 100644 (file)
@@ -41,7 +41,7 @@ prepare_window_for_orientation (GtkOrientation orientation)
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   g_signal_connect (window, "delete_event", G_CALLBACK (on_delete_event), NULL);
 
-  mainbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
+  mainbox = gtk_box_new (GTK_ORIENTATION_VERTICAL ^ orientation, 2);
   gtk_container_add (GTK_CONTAINER (window), mainbox);
 
   for (max = 9; max <= 999999999; max = max * 10 + 9)