1
/* GIMP - The GNU Image Manipulation Program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
#include <glib-object.h>
23
#include "libgimpconfig/gimpconfig.h"
25
#include "paint-types.h"
27
#include "gimpperspectivecloneoptions.h"
37
static void gimp_perspective_clone_options_set_property (GObject *object,
41
static void gimp_perspective_clone_options_get_property (GObject *object,
47
G_DEFINE_TYPE (GimpPerspectiveCloneOptions, gimp_perspective_clone_options,
48
GIMP_TYPE_CLONE_OPTIONS)
52
gimp_perspective_clone_options_class_init (GimpPerspectiveCloneOptionsClass *klass)
54
GObjectClass *object_class = G_OBJECT_CLASS (klass);
56
object_class->set_property = gimp_perspective_clone_options_set_property;
57
object_class->get_property = gimp_perspective_clone_options_get_property;
59
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CLONE_MODE,
61
GIMP_TYPE_PERSPECTIVE_CLONE_MODE,
62
GIMP_PERSPECTIVE_CLONE_MODE_ADJUST,
63
GIMP_PARAM_STATIC_STRINGS);
67
gimp_perspective_clone_options_init (GimpPerspectiveCloneOptions *options)
72
gimp_perspective_clone_options_set_property (GObject *object,
77
GimpPerspectiveCloneOptions *options = GIMP_PERSPECTIVE_CLONE_OPTIONS (object);
82
options->clone_mode = g_value_get_enum (value);
86
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
92
gimp_perspective_clone_options_get_property (GObject *object,
97
GimpPerspectiveCloneOptions *options = GIMP_PERSPECTIVE_CLONE_OPTIONS (object);
101
case PROP_CLONE_MODE:
102
g_value_set_enum (value, options->clone_mode);
106
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);