mirror of
https://git.code.sf.net/p/fldigi/flmsg
synced 2026-08-13 17:30:58 -04:00
FLTK 1.4.0
* Fl_Preferences compatibility
This commit is contained in:
parent
c4f57cebfd
commit
e500d771a3
1 changed files with 17 additions and 1 deletions
|
|
@ -97,7 +97,15 @@ status progStatus = {
|
|||
|
||||
void status::saveLastState()
|
||||
{
|
||||
#if FLDIGI_FLTK_API_MINOR < 4
|
||||
Fl_Preferences flmsgpref(FLMSG_dir.c_str(), "w1hkj.com", PACKAGE_NAME);
|
||||
#else
|
||||
Fl_Preferences flmsgpref(
|
||||
FLMSG_dir.c_str(),
|
||||
"w1hkj.com",
|
||||
PACKAGE_TARNAME,
|
||||
Fl_Preferences::C_LOCALE);
|
||||
#endif
|
||||
|
||||
int mX = mainwindow->x();
|
||||
int mY = mainwindow->y();
|
||||
|
|
@ -188,7 +196,15 @@ void status::saveLastState()
|
|||
|
||||
void status::loadLastState()
|
||||
{
|
||||
Fl_Preferences flmsgpref(FLMSG_dir.c_str(), "w1hkj.com", PACKAGE_NAME);
|
||||
#if FLDIGI_FLTK_API_MINOR < 4
|
||||
Fl_Preferences flmsgpref(FLMSG_dir.c_str(), "w1hkj.com", PACKAGE_NAME);
|
||||
#else
|
||||
Fl_Preferences flmsgpref(
|
||||
FLMSG_dir.c_str(),
|
||||
"w1hkj.com",
|
||||
PACKAGE_TARNAME,
|
||||
Fl_Preferences::C_LOCALE);
|
||||
#endif
|
||||
|
||||
if (flmsgpref.entryExists("version")) {
|
||||
int i = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue