mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
Mark param spec strings as static.
2005-03-21 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf.c (gdk_pixbuf_class_init): Mark param spec strings as static.
This commit is contained in:
parent
42bf543898
commit
7e77ea9943
@ -1,3 +1,8 @@
|
|||||||
|
2005-03-21 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gdk-pixbuf.c (gdk_pixbuf_class_init): Mark param spec strings
|
||||||
|
as static.
|
||||||
|
|
||||||
2005-03-14 Matthias Clasen <mclasen@redhat.com>
|
2005-03-14 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Make PLT-reduction work with gcc4, and don't include
|
Make PLT-reduction work with gcc4, and don't include
|
||||||
|
@ -95,7 +95,9 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
|||||||
object_class->finalize = gdk_pixbuf_finalize;
|
object_class->finalize = gdk_pixbuf_finalize;
|
||||||
object_class->set_property = gdk_pixbuf_set_property;
|
object_class->set_property = gdk_pixbuf_set_property;
|
||||||
object_class->get_property = gdk_pixbuf_get_property;
|
object_class->get_property = gdk_pixbuf_get_property;
|
||||||
|
|
||||||
|
#define PIXBUF_PARAM_FLAGS G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY|\
|
||||||
|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
|
||||||
/**
|
/**
|
||||||
* GdkPixbuf:n-channels:
|
* GdkPixbuf:n-channels:
|
||||||
*
|
*
|
||||||
@ -110,8 +112,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
|||||||
0,
|
0,
|
||||||
G_MAXINT,
|
G_MAXINT,
|
||||||
3,
|
3,
|
||||||
G_PARAM_READWRITE |
|
PIXBUF_PARAM_FLAGS));
|
||||||
G_PARAM_CONSTRUCT_ONLY));
|
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_COLORSPACE,
|
PROP_COLORSPACE,
|
||||||
@ -120,9 +121,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
|||||||
P_("The colorspace in which the samples are interpreted"),
|
P_("The colorspace in which the samples are interpreted"),
|
||||||
GDK_TYPE_COLORSPACE,
|
GDK_TYPE_COLORSPACE,
|
||||||
GDK_COLORSPACE_RGB,
|
GDK_COLORSPACE_RGB,
|
||||||
|
PIXBUF_PARAM_FLAGS));
|
||||||
G_PARAM_READWRITE |
|
|
||||||
G_PARAM_CONSTRUCT_ONLY));
|
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_HAS_ALPHA,
|
PROP_HAS_ALPHA,
|
||||||
@ -130,8 +129,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
|||||||
P_("Has Alpha"),
|
P_("Has Alpha"),
|
||||||
P_("Whether the pixbuf has an alpha channel"),
|
P_("Whether the pixbuf has an alpha channel"),
|
||||||
FALSE,
|
FALSE,
|
||||||
G_PARAM_READWRITE |
|
PIXBUF_PARAM_FLAGS));
|
||||||
G_PARAM_CONSTRUCT_ONLY));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GdkPixbuf:bits-per-sample:
|
* GdkPixbuf:bits-per-sample:
|
||||||
@ -147,8 +145,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
|||||||
1,
|
1,
|
||||||
16,
|
16,
|
||||||
8,
|
8,
|
||||||
G_PARAM_READWRITE |
|
PIXBUF_PARAM_FLAGS));
|
||||||
G_PARAM_CONSTRUCT_ONLY));
|
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_WIDTH,
|
PROP_WIDTH,
|
||||||
@ -158,8 +155,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
|||||||
1,
|
1,
|
||||||
G_MAXINT,
|
G_MAXINT,
|
||||||
1,
|
1,
|
||||||
G_PARAM_READWRITE |
|
PIXBUF_PARAM_FLAGS));
|
||||||
G_PARAM_CONSTRUCT_ONLY));
|
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_HEIGHT,
|
PROP_HEIGHT,
|
||||||
@ -169,8 +165,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
|||||||
1,
|
1,
|
||||||
G_MAXINT,
|
G_MAXINT,
|
||||||
1,
|
1,
|
||||||
G_PARAM_READWRITE |
|
PIXBUF_PARAM_FLAGS));
|
||||||
G_PARAM_CONSTRUCT_ONLY));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GdkPixbuf:rowstride:
|
* GdkPixbuf:rowstride:
|
||||||
@ -187,16 +182,14 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
|||||||
1,
|
1,
|
||||||
G_MAXINT,
|
G_MAXINT,
|
||||||
1,
|
1,
|
||||||
G_PARAM_READWRITE |
|
PIXBUF_PARAM_FLAGS));
|
||||||
G_PARAM_CONSTRUCT_ONLY));
|
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_PIXELS,
|
PROP_PIXELS,
|
||||||
g_param_spec_pointer ("pixels",
|
g_param_spec_pointer ("pixels",
|
||||||
P_("Pixels"),
|
P_("Pixels"),
|
||||||
P_("A pointer to the pixel data of the pixbuf"),
|
P_("A pointer to the pixel data of the pixbuf"),
|
||||||
G_PARAM_READWRITE |
|
PIXBUF_PARAM_FLAGS));
|
||||||
G_PARAM_CONSTRUCT_ONLY));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user