mirror of
https://github.com/brl/mutter.git
synced 2024-12-22 19:12:04 +00:00
More docustuff
This commit is contained in:
parent
1b22637650
commit
a695e2f06c
@ -1,3 +1,7 @@
|
|||||||
|
2006-06-22 Iain Holmes <iain@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/clutter-util.c: And more
|
||||||
|
|
||||||
2006-06-22 Ross Burton <ross@openedhand.com>
|
2006-06-22 Ross Burton <ross@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-label.c:
|
* clutter/clutter-label.c:
|
||||||
|
@ -45,6 +45,11 @@ error_handler(Display *xdpy,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clutter_util_trap_x_errors:
|
||||||
|
*
|
||||||
|
* Trap X errors so they don't cause an abort.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
clutter_util_trap_x_errors(void)
|
clutter_util_trap_x_errors(void)
|
||||||
{
|
{
|
||||||
@ -52,6 +57,13 @@ clutter_util_trap_x_errors(void)
|
|||||||
old_error_handler = XSetErrorHandler(error_handler);
|
old_error_handler = XSetErrorHandler(error_handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clutter_util_untrap_x_errors:
|
||||||
|
*
|
||||||
|
* Stop trapping X errors.
|
||||||
|
*
|
||||||
|
* Return value: 0 if there was no error, or the last X error that occurred.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
clutter_util_untrap_x_errors(void)
|
clutter_util_untrap_x_errors(void)
|
||||||
{
|
{
|
||||||
@ -59,6 +71,14 @@ clutter_util_untrap_x_errors(void)
|
|||||||
return TrappedErrorCode;
|
return TrappedErrorCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clutter_util_next_p2:
|
||||||
|
* @a: Value to get the next power
|
||||||
|
*
|
||||||
|
* Calculates the next power greater than @a.
|
||||||
|
*
|
||||||
|
* Return value: The next power after @a.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
clutter_util_next_p2 (int a)
|
clutter_util_next_p2 (int a)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user