staticint
gdk_x_io_error (Display *display)
{ /* This is basically modelled after the code in XLib. We need *anexpliciterrorhandlerhere,sowecandisableouratexit() *whichwouldotherwisecauseanicesegfault. *Weg_debug()insteadofg_warning(),becauseg_warning() *couldpossiblyberedirectedtothelog
*/
g_debug ("%s: Fatal IO error %d (%s) on X server %s.\n",
g_get_prgname (),
errno, g_strerror (errno),
display ? DisplayString (display) : "");
_exit (1);
}
/* X error handler. Keep the name the same because people are used to *breakingonitinthedebugger.
*/ staticint
gdk_x_error (Display *xdisplay,
XErrorEvent *error)
{ if (error->error_code)
{
GdkDisplay *error_display;
GdkDisplayManager *manager;
GSList *displays;
/* Figure out which GdkDisplay if any got the error. */
error_display = NULL;
manager = gdk_display_manager_get ();
displays = gdk_display_manager_list_displays (manager); while (displays != NULL)
{
GdkX11Display *gdk_display = displays->data;
if (_gdk_error_handler_push_count > 0)
{ if (previous != gdk_x_error)
g_warning ("XSetErrorHandler() called with a GDK error trap pushed. Don't do that.");
} else
{
_gdk_old_error_handler = previous;
}
if (gdk_x11_display_error_trap_pop (display)) returnFALSE;
return result;
}
void
_gdk_x11_region_get_xrectangles (const cairo_region_t *region, int x_offset, int y_offset, int scale,
XRectangle **rects, int *n_rects)
{
XRectangle *rectangles;
cairo_rectangle_int_t box; int i, n;
n = cairo_region_num_rectangles (region);
rectangles = g_new (XRectangle, n);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.