~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/paint/gimpconvolveoptions.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20070502163303-6wchheivjxgjtlna
Tags: upstream-2.3.16
ImportĀ upstreamĀ versionĀ 2.3.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
20
20
 
21
21
#include <glib-object.h>
22
22
 
 
23
#include "libgimpconfig/gimpconfig.h"
 
24
 
23
25
#include "paint-types.h"
24
26
 
25
 
#include "config/gimpconfig-params.h"
26
 
 
27
27
#include "gimpconvolveoptions.h"
28
28
 
29
29
 
39
39
};
40
40
 
41
41
 
42
 
static void   gimp_convolve_options_class_init (GimpConvolveOptionsClass *klass);
43
 
 
44
42
static void   gimp_convolve_options_set_property (GObject      *object,
45
43
                                                  guint         property_id,
46
44
                                                  const GValue *value,
51
49
                                                  GParamSpec   *pspec);
52
50
 
53
51
 
54
 
static GimpPaintOptionsClass *parent_class = NULL;
55
 
 
56
 
 
57
 
GType
58
 
gimp_convolve_options_get_type (void)
59
 
{
60
 
  static GType type = 0;
61
 
 
62
 
  if (! type)
63
 
    {
64
 
      static const GTypeInfo info =
65
 
      {
66
 
        sizeof (GimpConvolveOptionsClass),
67
 
        (GBaseInitFunc) NULL,
68
 
        (GBaseFinalizeFunc) NULL,
69
 
        (GClassInitFunc) gimp_convolve_options_class_init,
70
 
        NULL,           /* class_finalize */
71
 
        NULL,           /* class_data     */
72
 
        sizeof (GimpConvolveOptions),
73
 
        0,              /* n_preallocs    */
74
 
        (GInstanceInitFunc) NULL
75
 
      };
76
 
 
77
 
      type = g_type_register_static (GIMP_TYPE_PAINT_OPTIONS,
78
 
                                     "GimpConvolveOptions",
79
 
                                     &info, 0);
80
 
    }
81
 
 
82
 
  return type;
83
 
}
 
52
G_DEFINE_TYPE (GimpConvolveOptions, gimp_convolve_options,
 
53
               GIMP_TYPE_PAINT_OPTIONS)
 
54
 
84
55
 
85
56
static void
86
57
gimp_convolve_options_class_init (GimpConvolveOptionsClass *klass)
87
58
{
88
59
  GObjectClass *object_class = G_OBJECT_CLASS (klass);
89
60
 
90
 
  parent_class = g_type_class_peek_parent (klass);
91
 
 
92
61
  object_class->set_property = gimp_convolve_options_set_property;
93
62
  object_class->get_property = gimp_convolve_options_get_property;
94
63
 
96
65
                                 "type", NULL,
97
66
                                 GIMP_TYPE_CONVOLVE_TYPE,
98
67
                                 DEFAULT_CONVOLVE_TYPE,
99
 
                                 0);
 
68
                                 GIMP_PARAM_STATIC_STRINGS);
100
69
  GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_RATE,
101
70
                                   "rate", NULL,
102
71
                                   0.0, 100.0, DEFAULT_CONVOLVE_RATE,
103
 
                                   0);
 
72
                                   GIMP_PARAM_STATIC_STRINGS);
 
73
}
 
74
 
 
75
static void
 
76
gimp_convolve_options_init (GimpConvolveOptions *options)
 
77
{
104
78
}
105
79
 
106
80
static void