mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 03:50:30 +01:00
Recent patches has introduced the ability to exit cleanly from the WINGs library, but this introduced some side effects because a function is registered with 'atexit' to save user config on exit, which may not work anymore because WMReleaseApplication frees some stuff needed for that task. This patch handles this so that both method works, in case user of the lib would forget to call the clean exit function. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/* WUtil / userdefaults.h
|
|
*
|
|
* Copyright (c) 2014 Window Maker Team
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#ifndef WUTIL_USERDEFAULTS_H
|
|
#define WUTIL_USERDEFAULTS_H
|
|
|
|
/*
|
|
* This file is not part of WUtil public API
|
|
*
|
|
* It defines internal things for the user configuration handling functions
|
|
*/
|
|
|
|
|
|
/* Save user configuration, to be used when application exits only */
|
|
void w_save_defaults_changes(void);
|
|
|
|
|
|
#endif /* WUTIL_USERDEFAULTS_H */
|