I registered a boolean preference and it worked.
However, when I try and follow the same process with a uint it fails when I
try and edit the preference and 'apply' the change. The message I get is;
"The value for "xxxxxxTitle" isn't a valid number."
If I comment out the call to prefs_register_uint_preference then registering
the boolean works.
To use the boolean I did not need to modify the preferences file by hand,
the section for foo.tick appears by itself. I did try editing the
preferences file by hand to add in the problem variable but that did not
help.
The code I am using is given below, along with the edit I tried on
preferences.
Should I be editing the preferences file by hand to add in the variable.
Any ideas what I am doing wrong?
# xxxxxxDescription
# A decimal number.
foo.xxxxxx: 99
static gboolean prefTick;
static guint prefVer;
prefTick=TRUE;
prefVer=123;
prefs_register_bool_preference(foo_module,"tick","TickTitle","TickDescription",&prefTick);
prefs_register_uint_preference(foo_module,"xxxxxx","xxxxxxTitle","xxxxxxDescription",BASE_DEC,&prefVer);
TIA
Hal
P.S. Sometimes when I open the dialog box to edit the preference there is
garbage in the uint field
_________________________________________________________________
From predictions to trailers, check out the MSN Entertainment Guide to the
Academy Awards�
http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1