diff dwtest.c @ 2256:b7467bceb2cd

Set the font point size position to 9, the default value before use. If this isn't done, sometimes pressing the up or down buttons on the spinner causes the next position to be at an unexpected value.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 25 Jan 2021 21:19:24 +0000
parents 08369a79850f
children cb24daa675a2
line wrap: on
line diff
--- a/dwtest.c	Mon Jan 25 21:14:13 2021 +0000
+++ b/dwtest.c	Mon Jan 25 21:19:24 2021 +0000
@@ -1390,6 +1390,7 @@
         fontsize = dw_spinbutton_new("9", 0);
         dw_box_pack_start(hbox, fontsize, 50, -1, FALSE, FALSE, 1);
         dw_spinbutton_set_limits(fontsize, 100, 5);
+        dw_spinbutton_set_pos(fontsize, 9);
         fontname = dw_combobox_new("Default", 0);
         dw_listbox_append(fontname, "Default");
         dw_listbox_append(fontname, "Arial");