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

« back to all changes in this revision

Viewing changes to app/paint/gimpsmudgeoptions.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

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 "gimpsmudgeoptions.h"
28
28
 
29
29
 
37
37
};
38
38
 
39
39
 
40
 
static void   gimp_smudge_options_class_init   (GimpSmudgeOptionsClass *klass);
41
 
 
42
40
static void   gimp_smudge_options_set_property (GObject      *object,
43
41
                                                guint         property_id,
44
42
                                                const GValue *value,
49
47
                                                GParamSpec   *pspec);
50
48
 
51
49
 
52
 
static GimpPaintOptionsClass *parent_class = NULL;
53
 
 
54
 
 
55
 
GType
56
 
gimp_smudge_options_get_type (void)
57
 
{
58
 
  static GType type = 0;
59
 
 
60
 
  if (! type)
61
 
    {
62
 
      static const GTypeInfo info =
63
 
      {
64
 
        sizeof (GimpSmudgeOptionsClass),
65
 
        (GBaseInitFunc) NULL,
66
 
        (GBaseFinalizeFunc) NULL,
67
 
        (GClassInitFunc) gimp_smudge_options_class_init,
68
 
        NULL,           /* class_finalize */
69
 
        NULL,           /* class_data     */
70
 
        sizeof (GimpSmudgeOptions),
71
 
        0,              /* n_preallocs    */
72
 
        (GInstanceInitFunc) NULL
73
 
      };
74
 
 
75
 
      type = g_type_register_static (GIMP_TYPE_PAINT_OPTIONS,
76
 
                                     "GimpSmudgeOptions",
77
 
                                     &info, 0);
78
 
    }
79
 
 
80
 
  return type;
81
 
}
 
50
G_DEFINE_TYPE (GimpSmudgeOptions, gimp_smudge_options,
 
51
               GIMP_TYPE_PAINT_OPTIONS)
 
52
 
82
53
 
83
54
static void
84
55
gimp_smudge_options_class_init (GimpSmudgeOptionsClass *klass)
85
56
{
86
57
  GObjectClass *object_class = G_OBJECT_CLASS (klass);
87
58
 
88
 
  parent_class = g_type_class_peek_parent (klass);
89
 
 
90
59
  object_class->set_property = gimp_smudge_options_set_property;
91
60
  object_class->get_property = gimp_smudge_options_get_property;
92
61
 
93
62
  GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_RATE,
94
63
                                   "rate", NULL,
95
64
                                   0.0, 100.0, SMUDGE_DEFAULT_RATE,
96
 
                                   0);
 
65
                                   GIMP_PARAM_STATIC_STRINGS);
 
66
}
 
67
 
 
68
static void
 
69
gimp_smudge_options_init (GimpSmudgeOptions *options)
 
70
{
97
71
}
98
72
 
99
73
static void