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

« back to all changes in this revision

Viewing changes to app/tools/gimppenciltool.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
35
35
#include "gimp-intl.h"
36
36
 
37
37
 
38
 
static void   gimp_pencil_tool_init (GimpPencilTool *pencil);
 
38
G_DEFINE_TYPE (GimpPencilTool, gimp_pencil_tool, GIMP_TYPE_PAINTBRUSH_TOOL)
39
39
 
40
40
 
41
41
void
49
49
                GIMP_CONTEXT_GRADIENT_MASK,
50
50
                "gimp-pencil-tool",
51
51
                _("Pencil"),
52
 
                _("Paint hard edged pixels"),
 
52
                _("Pencil Tool: Hard edge painting using a brush"),
53
53
                N_("Pe_ncil"), "N",
54
54
                NULL, GIMP_HELP_TOOL_PENCIL,
55
55
                GIMP_STOCK_TOOL_PENCIL,
56
56
                data);
57
57
}
58
58
 
59
 
GType
60
 
gimp_pencil_tool_get_type (void)
 
59
static void
 
60
gimp_pencil_tool_class_init (GimpPencilToolClass *klass)
61
61
{
62
 
  static GType tool_type = 0;
63
 
 
64
 
  if (! tool_type)
65
 
    {
66
 
      static const GTypeInfo tool_info =
67
 
      {
68
 
        sizeof (GimpPencilToolClass),
69
 
        (GBaseInitFunc) NULL,
70
 
        (GBaseFinalizeFunc) NULL,
71
 
        NULL,           /* class_init     */
72
 
        NULL,           /* class_finalize */
73
 
        NULL,           /* class_data     */
74
 
        sizeof (GimpPencilTool),
75
 
        0,              /* n_preallocs    */
76
 
        (GInstanceInitFunc) gimp_pencil_tool_init,
77
 
      };
78
 
 
79
 
      tool_type = g_type_register_static (GIMP_TYPE_PAINTBRUSH_TOOL,
80
 
                                          "GimpPencilTool",
81
 
                                          &tool_info, 0);
82
 
    }
83
 
 
84
 
  return tool_type;
85
62
}
86
63
 
87
64
static void