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

« back to all changes in this revision

Viewing changes to app/paint/gimppencil.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
28
28
#include "gimp-intl.h"
29
29
 
30
30
 
 
31
G_DEFINE_TYPE (GimpPencil, gimp_pencil, GIMP_TYPE_PAINTBRUSH)
 
32
 
 
33
 
31
34
void
32
35
gimp_pencil_register (Gimp                      *gimp,
33
36
                      GimpPaintRegisterCallback  callback)
35
38
  (* callback) (gimp,
36
39
                GIMP_TYPE_PENCIL,
37
40
                GIMP_TYPE_PENCIL_OPTIONS,
38
 
                _("Pencil"));
39
 
}
40
 
 
41
 
GType
42
 
gimp_pencil_get_type (void)
43
 
{
44
 
  static GType type = 0;
45
 
 
46
 
  if (! type)
47
 
    {
48
 
      static const GTypeInfo info =
49
 
      {
50
 
        sizeof (GimpPencilClass),
51
 
        (GBaseInitFunc) NULL,
52
 
        (GBaseFinalizeFunc) NULL,
53
 
        NULL,           /* class_init     */
54
 
        NULL,           /* class_finalize */
55
 
        NULL,           /* class_data     */
56
 
        sizeof (GimpPencil),
57
 
        0,              /* n_preallocs    */
58
 
        NULL            /* instance_init  */
59
 
      };
60
 
 
61
 
      type = g_type_register_static (GIMP_TYPE_PAINTBRUSH,
62
 
                                     "GimpPencil",
63
 
                                     &info, 0);
64
 
    }
65
 
 
66
 
  return type;
 
41
                "gimp-pencil",
 
42
                _("Pencil"),
 
43
                "gimp-tool-pencil");
 
44
}
 
45
 
 
46
static void
 
47
gimp_pencil_class_init (GimpPencilClass *klass)
 
48
{
 
49
}
 
50
 
 
51
static void
 
52
gimp_pencil_init (GimpPencil *pencil)
 
53
{
67
54
}