mirror of
https://github.com/brl/mutter.git
synced 2024-12-03 13:20:41 -05:00
2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-main.h: Make the priority constants public. * clutter/clutter-stage.c: Use CLUTTER_PRIORITY_REDRAW. * clutter/clutter-timeline.c: Use CLUTTER_PRIORITY_TIMELINE.
This commit is contained in:
parent
6876d481e7
commit
dd185940c0
@ -1,3 +1,11 @@
|
|||||||
|
2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/clutter-main.h: Make the priority constants public.
|
||||||
|
|
||||||
|
* clutter/clutter-stage.c: Use CLUTTER_PRIORITY_REDRAW.
|
||||||
|
|
||||||
|
* clutter/clutter-timeline.c: Use CLUTTER_PRIORITY_TIMELINE.
|
||||||
|
|
||||||
2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
|
2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
* clutter/osx/clutter-backend-osx.c:
|
* clutter/osx/clutter-backend-osx.c:
|
||||||
|
@ -31,6 +31,11 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CLUTTER_INIT_ERROR:
|
||||||
|
*
|
||||||
|
* #GError domain for #ClutterInitError
|
||||||
|
*/
|
||||||
#define CLUTTER_INIT_ERROR (clutter_init_error_quark ())
|
#define CLUTTER_INIT_ERROR (clutter_init_error_quark ())
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -55,6 +60,24 @@ typedef enum {
|
|||||||
|
|
||||||
GQuark clutter_init_error_quark (void);
|
GQuark clutter_init_error_quark (void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CLUTTER_PRIORITY_REDRAW:
|
||||||
|
*
|
||||||
|
* Priority of the redraws.
|
||||||
|
*
|
||||||
|
* Since: 0.8
|
||||||
|
*/
|
||||||
|
#define CLUTTER_PRIORITY_REDRAW (G_PRIORITY_DEFAULT + 10)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CLUTTER_PRIORITY_TIMELINE:
|
||||||
|
*
|
||||||
|
* Priority of the timelines.
|
||||||
|
*
|
||||||
|
* Since: 0.8
|
||||||
|
*/
|
||||||
|
#define CLUTTER_PRIORITY_TIMELINE (G_PRIORITY_DEFAULT + 30)
|
||||||
|
|
||||||
/* Initialisation */
|
/* Initialisation */
|
||||||
void clutter_base_init (void);
|
void clutter_base_init (void);
|
||||||
ClutterInitError clutter_init (int *argc,
|
ClutterInitError clutter_init (int *argc,
|
||||||
|
@ -1804,7 +1804,7 @@ clutter_stage_queue_redraw (ClutterStage *stage)
|
|||||||
|
|
||||||
/* FIXME: weak_ref self in case we dissapear before paint? */
|
/* FIXME: weak_ref self in case we dissapear before paint? */
|
||||||
stage->priv->update_idle =
|
stage->priv->update_idle =
|
||||||
clutter_threads_add_idle_full (G_PRIORITY_DEFAULT + 10,
|
clutter_threads_add_idle_full (CLUTTER_PRIORITY_REDRAW,
|
||||||
redraw_update_idle,
|
redraw_update_idle,
|
||||||
stage,
|
stage,
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -94,7 +94,6 @@
|
|||||||
G_DEFINE_TYPE (ClutterTimeline, clutter_timeline, G_TYPE_OBJECT);
|
G_DEFINE_TYPE (ClutterTimeline, clutter_timeline, G_TYPE_OBJECT);
|
||||||
|
|
||||||
#define FPS_TO_INTERVAL(f) (1000 / (f))
|
#define FPS_TO_INTERVAL(f) (1000 / (f))
|
||||||
#define CLUTTER_TIMELINE_PRIORITY (G_PRIORITY_DEFAULT + 30)
|
|
||||||
|
|
||||||
struct _ClutterTimelinePrivate
|
struct _ClutterTimelinePrivate
|
||||||
{
|
{
|
||||||
@ -169,7 +168,7 @@ timeline_pool_init (void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
timeline_pool = clutter_timeout_pool_new (CLUTTER_TIMELINE_PRIORITY);
|
timeline_pool = clutter_timeout_pool_new (CLUTTER_PRIORITY_TIMELINE);
|
||||||
timeline_use_pool = TRUE;
|
timeline_use_pool = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -192,7 +191,7 @@ timeout_add (guint interval,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
res = clutter_threads_add_frame_source_full (CLUTTER_TIMELINE_PRIORITY,
|
res = clutter_threads_add_frame_source_full (CLUTTER_PRIORITY_TIMELINE,
|
||||||
interval,
|
interval,
|
||||||
func, data, notify);
|
func, data, notify);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user