|
|
|
|
@ -24,9 +24,6 @@
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#include <glib/gi18n.h>
|
|
|
|
|
#ifdef HAVE_X11_XLIB_H
|
|
|
|
|
# include <X11/Xlib.h>
|
|
|
|
|
#endif
|
|
|
|
|
#include <libxml/xmlIO.h>
|
|
|
|
|
|
|
|
|
|
#include "gnc-prefs-utils.h"
|
|
|
|
|
@ -640,28 +637,6 @@ gnc_ui_check_events (gpointer not_used)
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_X11_XLIB_H
|
|
|
|
|
static int
|
|
|
|
|
gnc_x_error (Display *display, XErrorEvent *error)
|
|
|
|
|
{
|
|
|
|
|
if (error->error_code)
|
|
|
|
|
{
|
|
|
|
|
char buf[64];
|
|
|
|
|
|
|
|
|
|
XGetErrorText (display, error->error_code, buf, 63);
|
|
|
|
|
|
|
|
|
|
g_warning ("X-ERROR **: %s\n serial %ld error_code %d "
|
|
|
|
|
"request_code %d minor_code %d\n",
|
|
|
|
|
buf,
|
|
|
|
|
error->serial,
|
|
|
|
|
error->error_code,
|
|
|
|
|
error->request_code,
|
|
|
|
|
error->minor_code);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
gnc_ui_start_event_loop (void)
|
|
|
|
|
@ -673,10 +648,6 @@ gnc_ui_start_event_loop (void)
|
|
|
|
|
id = g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE, 10000, /* 10 secs */
|
|
|
|
|
gnc_ui_check_events, NULL, NULL);
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_X11_XLIB_H
|
|
|
|
|
XSetErrorHandler (gnc_x_error);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Enter gnome event loop */
|
|
|
|
|
gtk_main ();
|
|
|
|
|
|
|
|
|
|
|