mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +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>
|
||||
|
||||
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->set_property = gdk_pixbuf_set_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:
|
||||
*
|
||||
@ -110,8 +112,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
3,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
PIXBUF_PARAM_FLAGS));
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_COLORSPACE,
|
||||
@ -120,9 +121,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
||||
P_("The colorspace in which the samples are interpreted"),
|
||||
GDK_TYPE_COLORSPACE,
|
||||
GDK_COLORSPACE_RGB,
|
||||
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
PIXBUF_PARAM_FLAGS));
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_HAS_ALPHA,
|
||||
@ -130,8 +129,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
||||
P_("Has Alpha"),
|
||||
P_("Whether the pixbuf has an alpha channel"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
PIXBUF_PARAM_FLAGS));
|
||||
|
||||
/**
|
||||
* GdkPixbuf:bits-per-sample:
|
||||
@ -147,8 +145,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
||||
1,
|
||||
16,
|
||||
8,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
PIXBUF_PARAM_FLAGS));
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_WIDTH,
|
||||
@ -158,8 +155,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
||||
1,
|
||||
G_MAXINT,
|
||||
1,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
PIXBUF_PARAM_FLAGS));
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_HEIGHT,
|
||||
@ -169,8 +165,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
||||
1,
|
||||
G_MAXINT,
|
||||
1,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
PIXBUF_PARAM_FLAGS));
|
||||
|
||||
/**
|
||||
* GdkPixbuf:rowstride:
|
||||
@ -187,16 +182,14 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
|
||||
1,
|
||||
G_MAXINT,
|
||||
1,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
PIXBUF_PARAM_FLAGS));
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_PIXELS,
|
||||
g_param_spec_pointer ("pixels",
|
||||
P_("Pixels"),
|
||||
P_("A pointer to the pixel data of the pixbuf"),
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
PIXBUF_PARAM_FLAGS));
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user