Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-04-04 12:11:38 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-04-04 12:11:38 (GMT)
commit29d518eb553c3a8df64d42272b50054b8f9d8eb1 (patch)
treed89f7f2e1b5916025f462d51b96ec2337497e371 /lib
parent164df7bf8518526c51e063d333a364934096652b (diff)
Do not abort on X errors
Diffstat (limited to 'lib')
-rw-r--r--lib/src/sugar-browser.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/src/sugar-browser.cpp b/lib/src/sugar-browser.cpp
index ac0c419..cd455b6 100644
--- a/lib/src/sugar-browser.cpp
+++ b/lib/src/sugar-browser.cpp
@@ -98,21 +98,21 @@ error_handler (Display *d, XErrorEvent *e)
gchar buf[64];
gchar *msg;
- XGetErrorText (d, e->error_code, buf, 63);
+ XGetErrorText(d, e->error_code, buf, 63);
msg =
- g_strdup_printf ("The program '%s' received an X Window System error.\n"
- "This probably reflects a bug in the program.\n"
- "The error was '%s'.\n"
- " (Details: serial %ld error_code %d request_code %d minor_code %d)\n",
- g_get_prgname (),
- buf,
- e->serial,
- e->error_code,
- e->request_code,
- e->minor_code);
-
- g_error ("%s", msg);
+ g_strdup_printf("The program '%s' received an X Window System error.\n"
+ "This probably reflects a bug in the program.\n"
+ "The error was '%s'.\n"
+ " (Details: serial %ld error_code %d request_code %d minor_code %d)\n",
+ g_get_prgname (),
+ buf,
+ e->serial,
+ e->error_code,
+ e->request_code,
+ e->minor_code);
+
+ g_warning ("%s", msg);
return 0;
/*return (*old_handler)(d, e);*/
@@ -142,7 +142,7 @@ sugar_browser_startup(const char *profile_path, const char *profile_name)
gtk_moz_embed_set_profile_path(profile_path, profile_name);
- old_handler = XSetErrorHandler (error_handler);
+ old_handler = XSetErrorHandler(error_handler);
gtk_moz_embed_push_startup();