
The GEGL ops sanity check causes all ops to be initialized. The strings used by their properties will pick the translation selected at the time of the check. It must therefore run after language intiailization, otherwise the selected translation would correspond to the system locale, even if the user selected a different language in the preferences. Split the sanity check into early and late stages. The early stage is run before the call to app_run(), as it did before, while the late stage is run during app_run(), after the configuration has been loaded. Currently, the GEGL ops check is the only late-stage check; all other checks are performed during the early stage.
31 lines
1010 B
C
31 lines
1010 B
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __SANITY_H__
|
|
#define __SANITY_H__
|
|
|
|
#ifndef GIMP_APP_GLUE_COMPILATION
|
|
#error You must not #include "sanity.h" from an app/ subdir
|
|
#endif
|
|
|
|
|
|
const gchar * sanity_check_early (void);
|
|
const gchar * sanity_check_late (void);
|
|
|
|
|
|
#endif /* __SANITY_H__ */
|