mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10: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>
|
||||
|
||||
* clutter/osx/clutter-backend-osx.c:
|
||||
|
@ -31,6 +31,11 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* CLUTTER_INIT_ERROR:
|
||||
*
|
||||
* #GError domain for #ClutterInitError
|
||||
*/
|
||||
#define CLUTTER_INIT_ERROR (clutter_init_error_quark ())
|
||||
|
||||
/**
|
||||
@ -55,6 +60,24 @@ typedef enum {
|
||||
|
||||
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 */
|
||||
void clutter_base_init (void);
|
||||
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? */
|
||||
stage->priv->update_idle =
|
||||
clutter_threads_add_idle_full (G_PRIORITY_DEFAULT + 10,
|
||||
clutter_threads_add_idle_full (CLUTTER_PRIORITY_REDRAW,
|
||||
redraw_update_idle,
|
||||
stage,
|
||||
NULL);
|
||||
|
@ -94,7 +94,6 @@
|
||||
G_DEFINE_TYPE (ClutterTimeline, clutter_timeline, G_TYPE_OBJECT);
|
||||
|
||||
#define FPS_TO_INTERVAL(f) (1000 / (f))
|
||||
#define CLUTTER_TIMELINE_PRIORITY (G_PRIORITY_DEFAULT + 30)
|
||||
|
||||
struct _ClutterTimelinePrivate
|
||||
{
|
||||
@ -169,7 +168,7 @@ timeline_pool_init (void)
|
||||
}
|
||||
else
|
||||
{
|
||||
timeline_pool = clutter_timeout_pool_new (CLUTTER_TIMELINE_PRIORITY);
|
||||
timeline_pool = clutter_timeout_pool_new (CLUTTER_PRIORITY_TIMELINE);
|
||||
timeline_use_pool = TRUE;
|
||||
}
|
||||
}
|
||||
@ -192,7 +191,7 @@ timeout_add (guint interval,
|
||||
}
|
||||
else
|
||||
{
|
||||
res = clutter_threads_add_frame_source_full (CLUTTER_TIMELINE_PRIORITY,
|
||||
res = clutter_threads_add_frame_source_full (CLUTTER_PRIORITY_TIMELINE,
|
||||
interval,
|
||||
func, data, notify);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user