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

« back to all changes in this revision

Viewing changes to app/paint/gimpdodgeburnoptions.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 "gimpdodgeburnoptions.h"
28
28
 
29
29
 
41
41
};
42
42
 
43
43
 
44
 
static void   gimp_dodge_burn_options_class_init   (GimpDodgeBurnOptionsClass *klass);
45
 
 
46
44
static void   gimp_dodge_burn_options_set_property (GObject      *object,
47
45
                                                    guint         property_id,
48
46
                                                    const GValue *value,
53
51
                                                    GParamSpec   *pspec);
54
52
 
55
53
 
56
 
static GimpPaintOptionsClass *parent_class = NULL;
57
 
 
58
 
 
59
 
GType
60
 
gimp_dodge_burn_options_get_type (void)
61
 
{
62
 
  static GType type = 0;
63
 
 
64
 
  if (! type)
65
 
    {
66
 
      static const GTypeInfo info =
67
 
      {
68
 
        sizeof (GimpDodgeBurnOptionsClass),
69
 
        (GBaseInitFunc) NULL,
70
 
        (GBaseFinalizeFunc) NULL,
71
 
        (GClassInitFunc) gimp_dodge_burn_options_class_init,
72
 
        NULL,           /* class_finalize */
73
 
        NULL,           /* class_data     */
74
 
        sizeof (GimpDodgeBurnOptions),
75
 
        0,              /* n_preallocs    */
76
 
        (GInstanceInitFunc) NULL
77
 
      };
78
 
 
79
 
      type = g_type_register_static (GIMP_TYPE_PAINT_OPTIONS,
80
 
                                     "GimpDodgeBurnOptions",
81
 
                                     &info, 0);
82
 
    }
83
 
 
84
 
  return type;
85
 
}
 
54
G_DEFINE_TYPE (GimpDodgeBurnOptions, gimp_dodge_burn_options,
 
55
               GIMP_TYPE_PAINT_OPTIONS)
 
56
 
86
57
 
87
58
static void
88
59
gimp_dodge_burn_options_class_init (GimpDodgeBurnOptionsClass *klass)
89
60
{
90
61
  GObjectClass *object_class = G_OBJECT_CLASS (klass);
91
62
 
92
 
  parent_class = g_type_class_peek_parent (klass);
93
 
 
94
63
  object_class->set_property = gimp_dodge_burn_options_set_property;
95
64
  object_class->get_property = gimp_dodge_burn_options_get_property;
96
65
 
98
67
                                 "type", NULL,
99
68
                                 GIMP_TYPE_DODGE_BURN_TYPE,
100
69
                                 DODGE_BURN_DEFAULT_TYPE,
101
 
                                 0);
 
70
                                 GIMP_PARAM_STATIC_STRINGS);
102
71
  GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE,
103
72
                                 "mode", NULL,
104
73
                                 GIMP_TYPE_TRANSFER_MODE,
105
74
                                 DODGE_BURN_DEFAULT_MODE,
106
 
                                 0);
 
75
                                 GIMP_PARAM_STATIC_STRINGS);
107
76
  GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EXPOSURE,
108
77
                                   "exposure", NULL,
109
78
                                   0.0, 100.0, DODGE_BURN_DEFAULT_EXPOSURE,
110
 
                                   0);
 
79
                                   GIMP_PARAM_STATIC_STRINGS);
 
80
}
 
81
 
 
82
static void
 
83
gimp_dodge_burn_options_init (GimpDodgeBurnOptions *options)
 
84
{
111
85
}
112
86
 
113
87
static void