mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 04:51:44 +00:00
e6063f61a2
2005-04-11 Michael Natterer <mitch@gimp.org> Let the user decide whether tool options are persistant or not as suggested in bug #165078: * app/config/gimprc-blurbs.h * app/config/gimpguiconfig.[ch]: added "gboolean save_tool_options". * app/tools/gimp-tools.[ch]: implement the same logic as for devicerc and essionrc: added gimp_tools_clear() which deletes the stored tool options and added "save_tool_options" and "always_save" parameters to gimp_tools_save(). Everything affects just the primary tool options, *not* the separately saved presets for each tool. * app/gui/gui.c (gui_exit_callback): changed accordingly. * app/dialogs/preferences-dialog.c: added GUI for the stuff above in the style of the devicerc and seccionrc prefs GUIs.
38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995-2001 Spencer Kimball, Peter Mattis and others
|
|
*
|
|
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GIMP_TOOLS_H__
|
|
#define __GIMP_TOOLS_H__
|
|
|
|
|
|
void gimp_tools_init (Gimp *gimp);
|
|
void gimp_tools_exit (Gimp *gimp);
|
|
|
|
void gimp_tools_restore (Gimp *gimp);
|
|
void gimp_tools_save (Gimp *gimp,
|
|
gboolean save_tool_options,
|
|
gboolean always_save);
|
|
|
|
gboolean gimp_tools_clear (Gimp *gimp,
|
|
GError **error);
|
|
|
|
GList * gimp_tools_get_default_order (Gimp *gimp);
|
|
|
|
|
|
#endif /* __GIMP_TOOLS_H__ */
|