2001-07-07 20:17:23 +08:00
|
|
|
/* The GIMP -- an 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 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2001-08-14 22:53:55 +08:00
|
|
|
#include <glib-object.h>
|
2001-07-07 20:17:23 +08:00
|
|
|
|
|
|
|
#include "core-types.h"
|
|
|
|
|
2001-07-11 20:39:49 +08:00
|
|
|
#include "gimp.h"
|
2001-07-07 20:17:23 +08:00
|
|
|
#include "gimpcoreconfig.h"
|
|
|
|
|
|
|
|
|
2001-07-11 20:39:49 +08:00
|
|
|
void
|
|
|
|
gimp_core_config_init (Gimp *gimp)
|
2001-07-07 20:17:23 +08:00
|
|
|
{
|
2001-07-11 20:39:49 +08:00
|
|
|
g_return_if_fail (GIMP_IS_GIMP (gimp));
|
|
|
|
|
|
|
|
gimp->config = g_new0 (GimpCoreConfig, 1);
|
|
|
|
|
2002-02-12 11:30:52 +08:00
|
|
|
gimp->config->interpolation_type = GIMP_INTERPOLATION_LINEAR;
|
2002-02-12 10:31:45 +08:00
|
|
|
|
2002-02-08 10:27:49 +08:00
|
|
|
gimp->config->tool_plug_in_path = NULL;
|
2001-07-11 20:39:49 +08:00
|
|
|
gimp->config->plug_in_path = NULL;
|
|
|
|
gimp->config->module_path = NULL;
|
|
|
|
|
|
|
|
gimp->config->brush_path = NULL;
|
|
|
|
gimp->config->pattern_path = NULL;
|
|
|
|
gimp->config->palette_path = NULL;
|
|
|
|
gimp->config->gradient_path = NULL;
|
|
|
|
|
|
|
|
gimp->config->default_brush = NULL;
|
|
|
|
gimp->config->default_pattern = NULL;
|
|
|
|
gimp->config->default_palette = NULL;
|
|
|
|
gimp->config->default_gradient = NULL;
|
|
|
|
|
|
|
|
gimp->config->default_comment = NULL;
|
2001-12-11 23:58:07 +08:00
|
|
|
gimp->config->default_type = GIMP_RGB;
|
2001-07-11 20:39:49 +08:00
|
|
|
gimp->config->default_width = 256;
|
|
|
|
gimp->config->default_height = 256;
|
|
|
|
gimp->config->default_units = GIMP_UNIT_INCH;
|
|
|
|
gimp->config->default_xresolution = 72.0;
|
|
|
|
gimp->config->default_yresolution = 72.0;
|
|
|
|
gimp->config->default_resolution_units = GIMP_UNIT_INCH;
|
|
|
|
|
|
|
|
gimp->config->levels_of_undo = 5;
|
|
|
|
gimp->config->pluginrc_path = NULL;
|
|
|
|
gimp->config->module_db_load_inhibit = NULL;
|
2002-04-30 03:41:45 +08:00
|
|
|
gimp->config->thumbnail_size = GIMP_THUMBNAIL_SIZE_NORMAL;
|
2001-07-11 20:39:49 +08:00
|
|
|
}
|