mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>
Bug #952 - Fix test-textures in trunk * tests/test-textures.c: Use USE_GDKPIXBUF instead of USE_PIXBUF. (#952, Gwenole Beauchesne)
This commit is contained in:
parent
c2d8773e69
commit
80cc7351b7
@ -1,3 +1,10 @@
|
||||
2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
Bug #952 - Fix test-textures in trunk
|
||||
|
||||
* tests/test-textures.c: Use USE_GDKPIXBUF instead of
|
||||
USE_PIXBUF. (#952, Gwenole Beauchesne)
|
||||
|
||||
2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
Bug #951 - Fix clutter_entry_init() in trunk
|
||||
|
@ -1,6 +1,13 @@
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <clutter/clutter.h>
|
||||
|
||||
#ifdef USE_PIXBUF
|
||||
#ifdef USE_GDKPIXBUF
|
||||
|
||||
GdkPixbuf*
|
||||
make_pixbuf (int width, int height, int bpp, int has_alpha)
|
||||
{
|
||||
@ -49,12 +56,12 @@ make_pixbuf (int width, int height, int bpp, int has_alpha)
|
||||
#define SPIN() while (g_main_context_pending (NULL)) \
|
||||
g_main_context_iteration (NULL, FALSE);
|
||||
|
||||
#endif
|
||||
#endif /* USE_GDKPIXBUF */
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
#ifdef USE_PIXBUF
|
||||
#ifdef USE_GDKPIXBUF
|
||||
ClutterActor *texture;
|
||||
ClutterActor *stage;
|
||||
GdkPixbuf *pixbuf;
|
||||
@ -107,6 +114,7 @@ main (int argc, char *argv[])
|
||||
|
||||
clutter_container_remove (CLUTTER_CONTAINER (stage), texture, NULL);
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
#endif /* USE_GDKPIXBUF */
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user