# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1611609564 0 # Node ID b7467bceb2cdef7df1df3f9da596919ed1be1417 # Parent 66d0f1df4b34dc9091c394aa8dee8fa2a68f4406 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. diff -r 66d0f1df4b34 -r b7467bceb2cd dwtest.c --- 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");