mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.[ch]: Rename clutter_actor_get_id() to clutter_actor_get_gid(). (clutter_actor_set_parent): Use GUINT_TO_POINTER(). * clutter/clutter-deprecated.h: Add a replacement warning for clutter_actor_get_id(). * clutter/clutter-texture.c (texture_upload_data): Use clutter_actor_get_gid(), and don't leak the filename string.
This commit is contained in:
@ -548,11 +548,15 @@ texture_upload_data (ClutterTexture *texture,
|
||||
{
|
||||
gchar *filename;
|
||||
|
||||
filename = g_strdup_printf("/tmp/%i-%i-%i.png",
|
||||
clutter_actor_get_id(CLUTTER_ACTOR(texture)),
|
||||
x, y);
|
||||
printf("saving %s\n", filename);
|
||||
filename =
|
||||
g_strdup_printf("/tmp/%i-%i-%i.png",
|
||||
clutter_actor_get_gid (CLUTTER_ACTOR (texture)),
|
||||
x, y);
|
||||
|
||||
printf ("saving %s\n", filename);
|
||||
|
||||
gdk_pixbuf_save (pixtmp, filename , "png", NULL, NULL);
|
||||
g_free (filename);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user