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> 2007-08-06 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-behaviour-depth.c: * clutter/clutter-behaviour-depth.c:

View File

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