2007-08-06 Matthew Allum <mallum@openedhand.com>

* clutter/clutter-texture.c:
        Correct set pixbuf property as GDK_TYPE_PIXBUF
        (fix via Neil Roberts)
This commit is contained in:
Matthew Allum 2007-08-06 12:48:13 +00:00
parent 7949cfe30a
commit b3c8ff186c
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2007-08-06 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-texture.c:
Correct set pixbuf property as GDK_TYPE_PIXBUF
(fix via Neil Roberts)
2007-08-06 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-behaviour-depth.c:

View File

@ -795,7 +795,7 @@ clutter_texture_set_property (GObject *object,
{
case PROP_PIXBUF:
clutter_texture_set_pixbuf (texture,
(GdkPixbuf*)g_value_get_pointer(value),
GDK_PIXBUF (g_value_get_object (value)),
NULL);
break;
case PROP_USE_TILES:
@ -846,7 +846,7 @@ clutter_texture_get_property (GObject *object,
{
GdkPixbuf *pixb;
pixb = clutter_texture_get_pixbuf (texture);
g_value_set_pointer (value, pixb);
g_value_set_object (value, pixb);
}
break;
case PROP_USE_TILES:
@ -903,10 +903,11 @@ clutter_texture_class_init (ClutterTextureClass *klass)
g_object_class_install_property
(gobject_class, PROP_PIXBUF,
g_param_spec_pointer ("pixbuf",
"Pixbuf source for Texture.",
"Pixbuf source for Texture.",
CLUTTER_PARAM_READWRITE));
g_param_spec_object ("pixbuf",
"Pixbuf source for Texture.",
"Pixbuf source for Texture.",
GDK_TYPE_PIXBUF,
CLUTTER_PARAM_READWRITE));
g_object_class_install_property
(gobject_class, PROP_USE_TILES,