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

« back to all changes in this revision

Viewing changes to app/tools/gimpimagemapoptions.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-2001 Spencer Kimball, Peter Mattis, and others
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
20
20
 
21
21
#include <gtk/gtk.h>
22
22
 
 
23
#include "libgimpconfig/gimpconfig.h"
 
24
 
23
25
#include "tools-types.h"
24
26
 
25
 
#include "config/gimpconfig-params.h"
26
 
 
27
27
#include "gimpimagemapoptions.h"
28
28
 
29
29
 
35
35
};
36
36
 
37
37
 
38
 
static void   gimp_image_map_options_class_init   (GimpImageMapOptionsClass *klass);
39
38
static void   gimp_image_map_options_finalize     (GObject      *object);
40
 
 
41
39
static void   gimp_image_map_options_set_property (GObject      *object,
42
40
                                                   guint         property_id,
43
41
                                                   const GValue *value,
48
46
                                                   GParamSpec   *pspec);
49
47
 
50
48
 
51
 
static GimpToolOptionsClass *parent_class = NULL;
52
 
 
53
 
 
54
 
GType
55
 
gimp_image_map_options_get_type (void)
56
 
{
57
 
  static GType type = 0;
58
 
 
59
 
  if (! type)
60
 
    {
61
 
      static const GTypeInfo info =
62
 
      {
63
 
        sizeof (GimpImageMapOptionsClass),
64
 
        (GBaseInitFunc) NULL,
65
 
        (GBaseFinalizeFunc) NULL,
66
 
        (GClassInitFunc) gimp_image_map_options_class_init,
67
 
        NULL,           /* class_finalize */
68
 
        NULL,           /* class_data     */
69
 
        sizeof (GimpImageMapOptions),
70
 
        0,              /* n_preallocs    */
71
 
        NULL            /* instance_init  */
72
 
      };
73
 
 
74
 
      type = g_type_register_static (GIMP_TYPE_TOOL_OPTIONS,
75
 
                                     "GimpImageMapOptions",
76
 
                                     &info, 0);
77
 
    }
78
 
 
79
 
  return type;
80
 
}
 
49
G_DEFINE_TYPE (GimpImageMapOptions, gimp_image_map_options,
 
50
               GIMP_TYPE_TOOL_OPTIONS)
 
51
 
 
52
#define parent_class gimp_image_map_options_parent_class
 
53
 
81
54
 
82
55
static void
83
56
gimp_image_map_options_class_init (GimpImageMapOptionsClass *klass)
84
57
{
85
58
  GObjectClass *object_class = G_OBJECT_CLASS (klass);
86
59
 
87
 
  parent_class = g_type_class_peek_parent (klass);
88
 
 
89
60
  object_class->finalize     = gimp_image_map_options_finalize;
90
61
  object_class->set_property = gimp_image_map_options_set_property;
91
62
  object_class->get_property = gimp_image_map_options_get_property;
93
64
  GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PREVIEW,
94
65
                                    "preview", NULL,
95
66
                                    TRUE,
96
 
                                    0);
 
67
                                    GIMP_PARAM_STATIC_STRINGS);
97
68
  g_object_class_install_property (object_class, PROP_SETTINGS,
98
69
                                   g_param_spec_string ("settings",
99
70
                                                        NULL, NULL,
100
71
                                                        NULL,
101
 
                                                        G_PARAM_READWRITE));
 
72
                                                        GIMP_PARAM_READWRITE));
 
73
}
 
74
 
 
75
static void
 
76
gimp_image_map_options_init (GimpImageMapOptions *options)
 
77
{
102
78
}
103
79
 
104
80
static void