mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
1229d8c84c
2002-11-25 Michael Natterer <mitch@gimp.org> * app/config/gimpconfig-utils.[ch]: added gimp_config_diff() which returns the difference beween two GimpConfig objects as a GList of GParamSpecs. * app/config/gimpconfig-params.c (gimp_param_color_cmp): compare the colors as integers to get rid of rounding foobar. * app/config/gimpconfig-serialize.c: use gimp_config_diff(). * app/display/gimpdisplayshell-handlers.c: only need to call gimp_display_shell_scale_setup() on resolution change if the display is not in dot-for-dot mode. * app/display/gimpdisplayshell.c: changed a separator in the padding color menu. * app/gui/dialogs.c: made the prefs dialog a singleton again. * app/gui/preferences-dialog.c: Should be fully functional again: Apply GIMP_PARAM_CONFIRM properties on "OK". Save gimprc on "OK". Parse a temporaty GimpRc on dialog creation to get the current GIMP_PARAM_RESTART values. Use gimp_config_diff() for all config comparisons.
37 lines
1.4 KiB
C
37 lines
1.4 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
|
|
*
|
|
* Utitility functions for GimpConfig.
|
|
* Copyright (C) 2001 Sven Neumann <sven@gimp.org>
|
|
*
|
|
* 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_CONFIG_UTILS_H__
|
|
#define __GIMP_CONFIG_UTILS_H__
|
|
|
|
|
|
GList * gimp_config_diff (GObject *a,
|
|
GObject *b,
|
|
GParamFlags flags);
|
|
void gimp_config_copy_properties (GObject *src,
|
|
GObject *dest);
|
|
|
|
gchar * gimp_config_build_data_path (const gchar *name);
|
|
gchar * gimp_config_build_plug_in_path (const gchar *name);
|
|
|
|
|
|
#endif /* __GIMP_CONFIG_UTILS_H__ */
|