View | Details | Raw Unified | Return to bug 183691
Collapse All | Expand All

(-)app/brush.c (-1 / +1 lines)
Lines 102-108 Link Here
102
102
103
GtkType gimp_brush_get_type(void)
103
GtkType gimp_brush_get_type(void)
104
{
104
{
105
  static GtkType type;
105
  static GtkType type = 0;
106
  if(!type){
106
  if(!type){
107
#if GTK_MAJOR_VERSION > 1
107
#if GTK_MAJOR_VERSION > 1
108
      static const GTypeInfo info =
108
      static const GTypeInfo info =
(-)app/brushgenerated.h (-1 / +1 lines)
Lines 51-57 Link Here
51
#define GIMP_BRUSH_GENERATED(obj)  (GIMP_CHECK_CAST ((obj), GIMP_TYPE_BRUSH_GENERATED, GimpBrushGenerated))
51
#define GIMP_BRUSH_GENERATED(obj)  (GIMP_CHECK_CAST ((obj), GIMP_TYPE_BRUSH_GENERATED, GimpBrushGenerated))
52
#define GIMP_IS_BRUSH_GENERATED(obj) (GIMP_CHECK_TYPE ((obj), GIMP_TYPE_BRUSH_GENERATED))
52
#define GIMP_IS_BRUSH_GENERATED(obj) (GIMP_CHECK_TYPE ((obj), GIMP_TYPE_BRUSH_GENERATED))
53
53
54
guint gimp_brush_generated_get_type (void);
54
GtkType gimp_brush_generated_get_type (void);
55
55
56
/* normal stuff */
56
/* normal stuff */
57
57
(-)app/channel.h (-1 / +1 lines)
Lines 39-45 Link Here
39
#define GIMP_CHANNEL_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gimp_channel_get_type(), GimpChannelClass)
39
#define GIMP_CHANNEL_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gimp_channel_get_type(), GimpChannelClass)
40
#define GIMP_IS_CHANNEL(obj)     GTK_CHECK_TYPE (obj, gimp_channel_get_type())
40
#define GIMP_IS_CHANNEL(obj)     GTK_CHECK_TYPE (obj, gimp_channel_get_type())
41
41
42
guint gimp_channel_get_type (void);
42
GtkType gimp_channel_get_type (void);
43
43
44
/*  Special undo type  */
44
/*  Special undo type  */
45
typedef struct ChannelUndo ChannelUndo;
45
typedef struct ChannelUndo ChannelUndo;
(-)app/depth/brushgenerated.c (-2 / +2 lines)
Lines 106-114 Link Here
106
  brush->freeze        = 0;
106
  brush->freeze        = 0;
107
}
107
}
108
108
109
guint gimp_brush_generated_get_type(void)
109
GtkType gimp_brush_generated_get_type(void)
110
{
110
{
111
  static GtkType type;
111
  static GtkType type = 0;
112
  if(!type){
112
  if(!type){
113
    GtkTypeInfo info={
113
    GtkTypeInfo info={
114
      "GimpBrushGenerated",
114
      "GimpBrushGenerated",
(-)app/depth/channel.c (-3 / +2 lines)
Lines 51-60 Link Here
51
static GimpDrawableClass *parent_class = NULL;
51
static GimpDrawableClass *parent_class = NULL;
52
52
53
53
54
guint
54
GtkType gimp_channel_get_type ()
55
gimp_channel_get_type ()
56
{
55
{
57
  static guint channel_type = 0;
56
  static GtkType channel_type = 0;
58
57
59
  if (!channel_type)
58
  if (!channel_type)
60
    {
59
    {
(-)app/depth/layer.c (-4 / +4 lines)
Lines 65-74 Link Here
65
static CanvasDrawableClass *layer_parent_class = NULL;
65
static CanvasDrawableClass *layer_parent_class = NULL;
66
static GimpChannelClass *layer_mask_parent_class = NULL;
66
static GimpChannelClass *layer_mask_parent_class = NULL;
67
67
68
guint
68
GtkType 
69
gimp_layer_get_type ()
69
gimp_layer_get_type ()
70
{
70
{
71
  static guint layer_type = 0;
71
  static GtkType layer_type = 0;
72
72
73
  if (!layer_type)
73
  if (!layer_type)
74
    {
74
    {
Lines 118-127 Link Here
118
{
118
{
119
}
119
}
120
120
121
guint
121
GtkType
122
gimp_layer_mask_get_type ()
122
gimp_layer_mask_get_type ()
123
{
123
{
124
  static guint layer_mask_type = 0;
124
  static GtkType layer_mask_type = 0;
125
125
126
  if (!layer_mask_type)
126
  if (!layer_mask_type)
127
    {
127
    {
(-)app/drawable.c (-2 / +2 lines)
Lines 56-65 Link Here
56
56
57
static CanvasDrawableClass *parent_class = NULL;
57
static CanvasDrawableClass *parent_class = NULL;
58
58
59
guint
59
GtkType
60
gimp_drawable_get_type ()
60
gimp_drawable_get_type ()
61
{
61
{
62
  static guint drawable_type = 0;
62
  static GtkType drawable_type = 0;
63
63
64
  if (!drawable_type)
64
  if (!drawable_type)
65
    {
65
    {
(-)app/drawable.h (-1 / +1 lines)
Lines 32-38 Link Here
32
#define GIMP_DRAWABLE_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, GIMP_TYPE_DRAWABLE, GimpDrawableClass)
32
#define GIMP_DRAWABLE_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, GIMP_TYPE_DRAWABLE, GimpDrawableClass)
33
#define GIMP_IS_DRAWABLE(obj)      GTK_CHECK_TYPE (obj, GIMP_TYPE_DRAWABLE)
33
#define GIMP_IS_DRAWABLE(obj)      GTK_CHECK_TYPE (obj, GIMP_TYPE_DRAWABLE)
34
34
35
guint gimp_drawable_get_type (void);
35
GtkType gimp_drawable_get_type (void);
36
36
37
37
38
/*  drawable access functions  */
38
/*  drawable access functions  */
(-)app/layer.h (-2 / +2 lines)
Lines 51-58 Link Here
51
#define GIMP_IS_LAYER_MASK(obj)      GTK_CHECK_TYPE (obj, gimp_layer_mask_get_type())
51
#define GIMP_IS_LAYER_MASK(obj)      GTK_CHECK_TYPE (obj, gimp_layer_mask_get_type())
52
52
53
53
54
guint gimp_layer_get_type (void);
54
GtkType gimp_layer_get_type (void);
55
guint gimp_layer_mask_get_type (void);
55
GtkType gimp_layer_mask_get_type (void);
56
56
57
/*  Special undo types  */
57
/*  Special undo types  */
58
58
(-)lib/chainbutton.c (-1 / +1 lines)
Lines 155-161 Link Here
155
GtkType
155
GtkType
156
gimp_chain_button_get_type (void)
156
gimp_chain_button_get_type (void)
157
{
157
{
158
  static guint gcb_type = 0;
158
  static GtkType gcb_type = 0;
159
159
160
  if (!gcb_type)
160
  if (!gcb_type)
161
    {
161
    {
(-)lib/pixmap.c (-1 / +1 lines)
Lines 70-76 Link Here
70
GtkType
70
GtkType
71
gimp_pixmap_get_type (void)
71
gimp_pixmap_get_type (void)
72
{
72
{
73
  static guint pixmap_type = 0;
73
  static GtkType pixmap_type = 0;
74
74
75
  if (!pixmap_type)
75
  if (!pixmap_type)
76
    {
76
    {
(-)lib/size_entry.c (-1 / +1 lines)
Lines 169-175 Link Here
169
GtkType
169
GtkType
170
gimp_size_entry_get_type (void)
170
gimp_size_entry_get_type (void)
171
{
171
{
172
  static guint gse_type = 0;
172
  static GtkType gse_type = 0;
173
173
174
  if (!gse_type)
174
  if (!gse_type)
175
    {
175
    {
(-)plug-ins/script-fu/gimpcolorbutton.c (-1 / +1 lines)
Lines 223-229 Link Here
223
GtkType
223
GtkType
224
gimp_color_button_get_type (void)
224
gimp_color_button_get_type (void)
225
{
225
{
226
  static guint type = 0;
226
  static GtkType type = 0;
227
227
228
  if (!type)
228
  if (!type)
229
    {
229
    {

Return to bug 183691