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

« back to all changes in this revision

Viewing changes to libgimpwidgets/gimpcolordisplaystack.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:
43
43
};
44
44
 
45
45
 
46
 
static void   gimp_color_display_stack_class_init (GimpColorDisplayStackClass *klass);
47
 
static void   gimp_color_display_stack_init       (GimpColorDisplayStack      *stack);
48
 
 
49
46
static void   gimp_color_display_stack_finalize        (GObject               *object);
50
47
 
51
48
static void   gimp_color_display_stack_display_changed (GimpColorDisplay      *display,
55
52
                                                        GimpColorDisplayStack *stack);
56
53
 
57
54
 
58
 
static GObjectClass *parent_class = NULL;
59
 
 
60
 
static guint  stack_signals[LAST_SIGNAL] = { 0 };
61
 
 
62
 
 
63
 
GType
64
 
gimp_color_display_stack_get_type (void)
65
 
{
66
 
  static GType display_type = 0;
67
 
 
68
 
  if (! display_type)
69
 
    {
70
 
      static const GTypeInfo display_info =
71
 
      {
72
 
        sizeof (GimpColorDisplayStackClass),
73
 
        (GBaseInitFunc) NULL,
74
 
        (GBaseFinalizeFunc) NULL,
75
 
        (GClassInitFunc) gimp_color_display_stack_class_init,
76
 
        NULL,           /* class_finalize */
77
 
        NULL,           /* class_data     */
78
 
        sizeof (GimpColorDisplayStack),
79
 
        0,              /* n_preallocs    */
80
 
        (GInstanceInitFunc) gimp_color_display_stack_init,
81
 
      };
82
 
 
83
 
      display_type = g_type_register_static (G_TYPE_OBJECT,
84
 
                                             "GimpColorDisplayStack",
85
 
                                             &display_info, 0);
86
 
    }
87
 
 
88
 
  return display_type;
89
 
}
 
55
G_DEFINE_TYPE (GimpColorDisplayStack, gimp_color_display_stack, G_TYPE_OBJECT)
 
56
 
 
57
#define parent_class gimp_color_display_stack_parent_class
 
58
 
 
59
static guint stack_signals[LAST_SIGNAL] = { 0 };
 
60
 
90
61
 
91
62
static void
92
63
gimp_color_display_stack_class_init (GimpColorDisplayStackClass *klass)
93
64
{
94
65
  GObjectClass *object_class = G_OBJECT_CLASS (klass);
95
66
 
96
 
  parent_class = g_type_class_peek_parent (klass);
97
 
 
98
67
  stack_signals[CHANGED] =
99
68
    g_signal_new ("changed",
100
69
                  G_TYPE_FROM_CLASS (klass),