
Filters settings used to be serialized and deserialized only when a filter tool's GUI was shown, too late for the code that re-runs/re-shows filters with previous values. Move the entire loading/saving code to gimp-operation-config.c, even adding/removing the dummy separator item between timestamped automatic history and manually saved settings. Load the settings automatically when a settings container is requested, but still trigger saving from the few places the container is changed in the GUI; could also automate that later. This commit also moves all settings of filters that have their own tools from gimpdir/tool-options/ to gimpdir/filters/. Add compat code to try the old filename if the new doesn't exist, so files are migrated automatically. WIP, but this step already fixes the bug.
28 lines
919 B
C
28 lines
919 B
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* gimp-operations.h
|
|
*
|
|
* 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 __GIMP_OPERATIONS_H__
|
|
#define __GIMP_OPERATIONS_H__
|
|
|
|
|
|
void gimp_operations_init (Gimp *gimp);
|
|
|
|
|
|
#endif /* __GIMP_OPERATIONS_H__ */
|