+static void variable_pitch_handler(union control *ctrl, void *dlg,
+ void *data, int event)
+{
+ if (event == EVENT_REFRESH) {
+ dlg_checkbox_set(ctrl, dlg, !dlg_get_fixed_pitch_flag(dlg));
+ } else if (event == EVENT_VALCHANGE) {
+ dlg_set_fixed_pitch_flag(dlg, !dlg_checkbox_get(ctrl, dlg));
+ }
+}
+