Discussion:
Fltk Preferences are noisy...
Roman Kantor
2013-03-20 12:45:28 UTC
Permalink
Widget handle() method upon first use calls Fl::visible_focus() which through Fl::option() reads fltk standard preferences (that is (Fl_Preferences::SYSTEM,
"fltk.org", "fltk") and (Fl_Preferences::USER, "fltk.org", "fltk")).
Fl::option() function (Fl.cxx, line around 1944) just constructs these preferences, uses only get() methods and then destructs these preferences. However upon
destruction the preferences are flushed/re-written on the disk.
Is that necessary if only get() methods are used and preferences are not changed?

R.
chris
2013-03-21 06:34:43 UTC
Permalink
I think there was alreay a STR for that (with a possible solution):

http://www.fltk.org/str.php?L2823+P0+S-2+C0+I0+E0+QFl_Preference

Cheers,
chris
Post by Roman Kantor
Widget handle() method upon first use calls Fl::visible_focus() which through Fl::option() reads fltk standard preferences (that is (Fl_Preferences::SYSTEM,
"fltk.org", "fltk") and (Fl_Preferences::USER, "fltk.org", "fltk")).
Fl::option() function (Fl.cxx, line around 1944) just constructs these preferences, uses only get() methods and then destructs these preferences. However upon
destruction the preferences are flushed/re-written on the disk.
Is that necessary if only get() methods are used and preferences are not changed?
R.
MacArthur, Ian (Selex ES, UK)
2013-03-21 12:34:28 UTC
Permalink
Yes indeed; that looks like the same issue.

Does look like something that could be changed without harm, too.

Be handy if someone who is familiar with the preferences stuff had a view on this - Matthias' DSL is back on we hear; maybe he's still a little busy after the moves though!
Post by chris
http://www.fltk.org/str.php?L2823+P0+S-2+C0+I0+E0+QFl_Preference
Cheers,
chris
Post by Roman Kantor
Widget handle() method upon first use calls Fl::visible_focus() which
through Fl::option() reads fltk standard preferences (that is
(Fl_Preferences::SYSTEM,
Post by Roman Kantor
"fltk.org", "fltk") and (Fl_Preferences::USER, "fltk.org", "fltk")).
Fl::option() function (Fl.cxx, line around 1944) just constructs
these preferences, uses only get() methods and then destructs these
preferences. However upon
Post by Roman Kantor
destruction the preferences are flushed/re-written on the disk.
Is that necessary if only get() methods are used and preferences are
not changed?
Post by Roman Kantor
R.
Selex ES Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
Loading...