mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c: * clutter/clutter-actor.h: * tests/test-cogl-primitives.c: * tests/test-events.c: * tests/test-multistage.c: * tests/test-textures.c: * tests/test-timeline.c: Miscellaneous fixes for distcheck to pass.
This commit is contained in:
parent
76b71f8cc4
commit
4b97a02410
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
||||
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-actor.c:
|
||||
* clutter/clutter-actor.h:
|
||||
* tests/test-cogl-primitives.c:
|
||||
* tests/test-events.c:
|
||||
* tests/test-multistage.c:
|
||||
* tests/test-textures.c:
|
||||
* tests/test-timeline.c: Miscellaneous fixes for distcheck to
|
||||
pass.
|
||||
|
||||
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-texture.c:
|
||||
|
@ -3257,10 +3257,10 @@ clutter_actor_get_preferred_height (ClutterActor *self,
|
||||
/**
|
||||
* clutter_actor_get_allocation_coords:
|
||||
* @self: A #ClutterActor
|
||||
* @x1: x1 coord
|
||||
* @y1: y1 coord
|
||||
* @x2: x2 coord
|
||||
* @y2: y2 coord
|
||||
* @x_1: x1 coordinate
|
||||
* @y_1: y1 coordinate
|
||||
* @x_2: x2 coordinate
|
||||
* @y_2: y2 coordinate
|
||||
*
|
||||
* Gets the layout box an actor has been assigned. The allocation can
|
||||
* only be assumed valid inside a paint() method; anywhere else, it
|
||||
@ -3275,10 +3275,10 @@ clutter_actor_get_preferred_height (ClutterActor *self,
|
||||
*/
|
||||
void
|
||||
clutter_actor_get_allocation_coords (ClutterActor *self,
|
||||
gint *x1,
|
||||
gint *y1,
|
||||
gint *x2,
|
||||
gint *y2)
|
||||
gint *x_1,
|
||||
gint *y_1,
|
||||
gint *x_2,
|
||||
gint *y_2)
|
||||
{
|
||||
ClutterActorBox allocation = { 0, };
|
||||
|
||||
@ -3286,17 +3286,17 @@ clutter_actor_get_allocation_coords (ClutterActor *self,
|
||||
|
||||
clutter_actor_get_allocation_box (self, &allocation);
|
||||
|
||||
if (x1)
|
||||
*x1 = CLUTTER_UNITS_TO_DEVICE (allocation.x1);
|
||||
if (x_1)
|
||||
*x_1 = CLUTTER_UNITS_TO_DEVICE (allocation.x1);
|
||||
|
||||
if (y1)
|
||||
*y1 = CLUTTER_UNITS_TO_DEVICE (allocation.y1);
|
||||
if (y_1)
|
||||
*y_1 = CLUTTER_UNITS_TO_DEVICE (allocation.y1);
|
||||
|
||||
if (x2)
|
||||
*x2 = CLUTTER_UNITS_TO_DEVICE (allocation.x2);
|
||||
if (x_2)
|
||||
*x_2 = CLUTTER_UNITS_TO_DEVICE (allocation.x2);
|
||||
|
||||
if (y2)
|
||||
*y2 = CLUTTER_UNITS_TO_DEVICE (allocation.y2);
|
||||
if (y_2)
|
||||
*y_2 = CLUTTER_UNITS_TO_DEVICE (allocation.y2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -302,10 +302,10 @@ void clutter_actor_allocate (ClutterActor
|
||||
const ClutterActorBox *box,
|
||||
gboolean absolute_origin_changed);
|
||||
void clutter_actor_get_allocation_coords (ClutterActor *self,
|
||||
gint *x1,
|
||||
gint *y1,
|
||||
gint *x2,
|
||||
gint *y2);
|
||||
gint *x_1,
|
||||
gint *y_1,
|
||||
gint *x_2,
|
||||
gint *y_2);
|
||||
void clutter_actor_get_allocation_box (ClutterActor *self,
|
||||
ClutterActorBox *box);
|
||||
void clutter_actor_get_allocation_geometry (ClutterActor *self,
|
||||
|
@ -194,6 +194,7 @@ test_coglbox_paint(ClutterActor *self)
|
||||
{
|
||||
timer = g_timer_new ();
|
||||
g_timer_start (timer);
|
||||
paint_index = 0;
|
||||
}
|
||||
|
||||
if (g_timer_elapsed (timer, NULL) >= 1)
|
||||
|
@ -184,7 +184,7 @@ input_cb (ClutterActor *actor,
|
||||
if (clutter_event_get_source (event) == actor)
|
||||
g_print (" *source*");
|
||||
|
||||
g_printf("\n");
|
||||
g_print ("\n");
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -8,6 +8,8 @@ tex_button_cb (ClutterActor *actor,
|
||||
gpointer data)
|
||||
{
|
||||
clutter_actor_hide (actor);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -11,7 +11,7 @@ make_rgba_data (int width, int height, int bpp, int has_alpha, int *rowstride_p)
|
||||
{
|
||||
#define CHECK_SIZE 20
|
||||
|
||||
gint x,y, rowstride, n_channels, i = 0;
|
||||
gint x,y, rowstride, i = 0;
|
||||
guchar *pixels;
|
||||
|
||||
g_assert(bpp == 4);
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <clutter/clutter.h>
|
||||
|
||||
static void
|
||||
@ -59,7 +60,7 @@ timeline_3_marker_reached (ClutterTimeline *timeline,
|
||||
const gchar *marker_name,
|
||||
guint frame_num)
|
||||
{
|
||||
g_print ("2: Marker `%s' (%d) reached\n", marker_name, frame_num);
|
||||
g_print ("3: Marker `%s' (%d) reached\n", marker_name, frame_num);
|
||||
}
|
||||
|
||||
int
|
||||
@ -105,7 +106,7 @@ main (int argc, char **argv)
|
||||
NULL);
|
||||
|
||||
g_signal_connect (timeline_2,
|
||||
"marker-reached::bar", G_CALLBACK (timeline_1_marker_reached),
|
||||
"marker-reached::bar", G_CALLBACK (timeline_2_marker_reached),
|
||||
NULL);
|
||||
g_signal_connect (timeline_2,
|
||||
"new-frame", G_CALLBACK (timeline_2_new_frame_cb),
|
||||
@ -115,7 +116,7 @@ main (int argc, char **argv)
|
||||
NULL);
|
||||
|
||||
g_signal_connect (timeline_3,
|
||||
"marker-reached", G_CALLBACK (timeline_1_marker_reached),
|
||||
"marker-reached", G_CALLBACK (timeline_3_marker_reached),
|
||||
NULL);
|
||||
g_signal_connect (timeline_3,
|
||||
"new-frame", G_CALLBACK (timeline_3_new_frame_cb),
|
||||
|
Loading…
Reference in New Issue
Block a user