ClutterGeometry geom = {0, 0, SIZE, SIZE};
gint i = 0;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
cally_util_a11y_init (&argc, &argv);
g_set_application_name ("AtkEditableText");
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
cally_util_a11y_init (&argc, &argv);
g_set_application_name ("AtkText");
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
cally_util_a11y_init (&argc, &argv);
g_set_application_name ("AtkText");
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
cally_util_a11y_init (&argc, &argv);
g_set_application_name ("Clone Example");
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
cally_util_a11y_init (&argc, &argv);
ClutterColor rect_color = { 0x44, 0xdd, 0x44, 0xff };
ClutterAction *action;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
ClutterActor *stage;
ClutterActor *rects[COUNT];
gint i;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
}
}
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Behaviours");
ClutterColor *color;
ClutterAction *action;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Box test");
ClutterActor *stage, *key_group;
gint group_x, group_y;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
g_signal_connect (stage,
ClutterLayoutManager *layout;
gint i;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Box Layout");
srand (time (NULL));
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
ClutterActor *stub_actor, *label;
gchar *file;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
data.current_clip.type = CLIP_NONE;
data.clips = NULL;
0, 0, 1, 1
};
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_actor_get_geometry (stage, &geom);
ClutterActor *stage;
ClutterActor *coglbox;
- clutter_init(&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
/* Stage */
stage = clutter_stage_get_default ();
GError *error = NULL;
int i;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
data.material = cogl_material_new ();
data.last_spark_time = g_timer_new ();
ClutterActor *coglbox;
ClutterTimeline *tl;
- clutter_init(&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
tl = clutter_timeline_new (G_N_ELEMENTS (paint_func) * 1000);
clutter_timeline_set_loop (tl, TRUE);
GError *error;
ClutterColor stage_color = { 0x61, 0x64, 0x8c, 0xff };
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
GError *error;
ClutterColor stage_color = { 0x61, 0x64, 0x8c, 0xff };
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
ClutterActor *stage;
ClutterActor *coglbox;
- clutter_init(&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
/* Stage */
stage = clutter_stage_get_default ();
ClutterActor *stage;
ClutterActor *coglbox;
- clutter_init(&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
/* Stage */
stage = clutter_stage_get_default ();
ClutterActor *stage;
ClutterActor *coglbox;
- clutter_init(&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
/* Stage */
stage = clutter_stage_get_default ();
ClutterTimeline *timeline;
ClutterColor blue = { 0x30, 0x30, 0xff, 0xff };
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
/* Stage */
stage = clutter_stage_get_default ();
ClutterActor *coglbox;
ClutterTimeline *timeline;
- clutter_init(&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
/* Stage */
stage = clutter_stage_get_default ();
ClutterGeometry stage_geom;
gint dummy_width, dummy_height;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
ClutterColor rect_color;
gint i;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
g_signal_connect (stage, "destroy", G_CALLBACK (clutter_main_quit), NULL);
ClutterActor *group, *hand, *label, *rect, *janus, *box;
GError *error;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Depth Test");
/* force enabling X11 support */
clutter_x11_enable_xinput ();
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
app = g_new0 (TestDevicesApp, 1);
app->devices = g_hash_table_new (g_direct_hash, g_direct_equal) ;
gchar *text;
gfloat stage_width, stage_height;
gfloat label_width, label_height;
-
- clutter_init_with_args (&argc, &argv,
- NULL,
- test_easing_entries,
- NULL,
- NULL);
+ GError *error = NULL;
+
+ if (clutter_init_with_args (&argc, &argv,
+ NULL,
+ test_easing_entries,
+ NULL,
+ &error) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
ncol = { 0, 0, 0, 0xff },
xcol = { 0xff, 0, 0xff, 0xff };
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
int x_pos = 200;
int y_pos = 100;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
if (clutter_feature_available (CLUTTER_FEATURE_OFFSCREEN) == FALSE)
g_error("This test requires CLUTTER_FEATURE_OFFSCREEN");
{
ClutterActor *stage;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
g_signal_connect (stage,
ccol = { 0, 0xff, 0xff, 0xff },
ycol = { 0xff, 0xff, 0, 0xff };
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
g_print ("Red box: aquire grab on press, releases it on next button release\n");
g_print ("Blue box: aquire grab on press, destroys the blue box actor on release\n");
gint i, size;
GError *error = NULL;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_actor_set_size (stage, 800, 600);
{
ClutterModel *model;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
model = clutter_list_model_new (N_COLUMNS,
G_TYPE_INT, "Foo",
ClutterActor *label;
gint width, height;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage_default = clutter_stage_get_default ();
clutter_stage_set_title (CLUTTER_STAGE (stage_default), "Default Stage");
ClutterPath *path;
ClutterColor rect_color = { 0xcc, 0x00, 0x00, 0xff };
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Path Constraint");
int i;
int row_height;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
xdpy = clutter_x11_get_default_display ();
XSynchronize (xdpy, True);
ClutterAlpha *alpha;
ClutterBehaviour *behave;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
gchar *file;
gint res;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
script = clutter_script_new ();
g_assert (CLUTTER_IS_SCRIPT (script));
ClutterAction *action;
gint i;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Scrolling");
ClutterActor *stage, *hand, *label, *rect;
gchar *file;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
/* Make a timeline */
timeline = clutter_timeline_new (7692);
GError *error;
gchar *file;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Shaders");
{
ClutterActor *stage, *layer_a, *layer_b, *layer_c;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
/* the main container */
stage = clutter_stage_new ();
{
CallbackData data;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
data.idle_source = 0;
data.stage = clutter_stage_get_default ();
gfloat width;
ClutterActor *stage, *rect, *label;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
ClutterActor *stage;
ClutterActor *rects[40];
gint i;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
ClutterActor *stage;
ClutterState *layout_state;
gint i;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
layout_state = clutter_state_new ();
ClutterActor *box;
gchar *file;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Table Layout");
ClutterActor *box, *entry;
ClutterLayoutManager *table;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Text Fields");
ClutterColor cursor_color = { 0xff, 0x33, 0x33, 0xff };
ClutterColor background_color = { 0x00, 0x00, 0x00, 0xff };
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &background_color);
ClutterColor stage_color = { 0x12, 0x34, 0x56, 0xff };
gchar *path;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
g_thread_init (NULL);
stage = clutter_stage_get_default ();
g_thread_init (NULL);
clutter_threads_init ();
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Texture Material");
GError *error;
gchar *file;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
ClutterActor *stage;
gint i, j;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_actor_show_all (CLUTTER_ACTOR (stage));
g_thread_init (NULL);
clutter_threads_init ();
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_new ();
clutter_stage_set_title (CLUTTER_STAGE (stage), "Threading");
}
}
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
const ClutterColor black = { 0x00, 0x00, 0x00, 0xff };
ClutterColor color = { 0x00, 0x00, 0x00, 0xff };
ClutterActor *stage, *rect;
+ GError *error = NULL;
g_setenv ("CLUTTER_VBLANK", "none", FALSE);
g_setenv ("CLUTTER_DEFAULT_FPS", "1000", FALSE);
g_setenv ("CLUTTER_SHOW_FPS", "1", FALSE);
- clutter_init_with_args (&argc, &argv,
- NULL,
- entries,
- NULL,
- NULL);
+ if (clutter_init_with_args (&argc, &argv,
+ NULL,
+ entries,
+ NULL,
+ &error) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_actor_set_size (stage, 512, 512);
{
ClutterActor *stage;
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
g_setenv ("CLUTTER_VBLANK", "none", FALSE);
g_setenv ("CLUTTER_DEFAULT_FPS", "1000", FALSE);
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
if (argc != 3)
{
g_setenv ("CLUTTER_VBLANK", "none", FALSE);
g_setenv ("CLUTTER_DEFAULT_FPS", "1000", FALSE);
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ return 1;
stage = clutter_stage_get_default ();
clutter_actor_set_size (stage, STAGE_WIDTH, STAGE_HEIGHT);