make alerts smaller... small white boxes of death.
SVN revision: 31687
This commit is contained in:
parent
3552b64078
commit
5bbb0afd05
|
@ -22,7 +22,7 @@ static Font font = 0;
|
||||||
static XFontStruct *fs = NULL;
|
static XFontStruct *fs = NULL;
|
||||||
static GC gc = 0;
|
static GC gc = 0;
|
||||||
static Window win = 0, b1 = 0, b2 = 0;
|
static Window win = 0, b1 = 0, b2 = 0;
|
||||||
static int ww = 600, hh = 440;
|
static int ww = 320, hh = 240;
|
||||||
|
|
||||||
/* externally accessible functions */
|
/* externally accessible functions */
|
||||||
EAPI int
|
EAPI int
|
||||||
|
|
|
@ -377,10 +377,12 @@ main(int argc, char **argv)
|
||||||
/* good reason we want to have been launched this way, thus check */
|
/* good reason we want to have been launched this way, thus check */
|
||||||
if (!getenv("E_START"))
|
if (!getenv("E_START"))
|
||||||
{
|
{
|
||||||
e_alert_show("You are executing enlightenment directly. This is bad. Please do not execute the\n"
|
e_alert_show("You are executing enlightenment directly. This is\n"
|
||||||
"\"enlightenment\" binary. Use the \"enlightenment_start\" launcher. It will\n"
|
"bad. Please do not execute the \"enlightenment\"\n"
|
||||||
"handle setting up environment variables, paths, and launching any other required\n"
|
"binary. Use the \"enlightenment_start\" launcher. It\n"
|
||||||
"services etc. before enlightenment itself begins running.\n");
|
"will handle setting up environment variables, paths,\n"
|
||||||
|
"and launching any other required services etc.\n"
|
||||||
|
"before enlightenment itself begins running.\n");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,20 +25,15 @@ e_sigseg_act(int x, siginfo_t *info, void *data)
|
||||||
ecore_x_keyboard_ungrab();
|
ecore_x_keyboard_ungrab();
|
||||||
ecore_x_ungrab();
|
ecore_x_ungrab();
|
||||||
ecore_x_sync();
|
ecore_x_sync();
|
||||||
e_alert_show("This is very bad. Enlightenment has segfaulted.\n"
|
e_alert_show("This is very bad. Enlightenment SEGV'd.\n"
|
||||||
"This is not meant to happen and is likely a sign of a\n"
|
|
||||||
"bug in Enlightenment or the libraries it relies on.\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"You can gdb attach to this process now to try debug it\n"
|
"This is not meant to happen and is likely a sign of\n"
|
||||||
"or you could exit, or just hit restart to try and get\n"
|
"a bug in Enlightenment or the libraries it relies\n"
|
||||||
"your desktop back the way it was. This may not always\n"
|
"on. You can gdb attach to this process now to try\n"
|
||||||
"work perfectly, but it is the best we can do for now.\n"
|
"debug it or you could exit, or just hit restart to\n"
|
||||||
|
"try and get your desktop back the way it was.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Please help us debug this by compiling Enlightenment and\n"
|
"Please compile everything with -g in your CFLAGS\n");
|
||||||
"all its dependency libraries with gdb debugging enabled\n"
|
|
||||||
"and gdb attach to E when this happens and try figure out\n"
|
|
||||||
"what's going on and send us gdb backtraces, variable dumps\n"
|
|
||||||
"etc.");
|
|
||||||
exit(-11);
|
exit(-11);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -50,20 +45,15 @@ e_sigseg_act(int x, siginfo_t *info, void *data)
|
||||||
ecore_x_keyboard_ungrab();
|
ecore_x_keyboard_ungrab();
|
||||||
ecore_x_ungrab();
|
ecore_x_ungrab();
|
||||||
ecore_x_sync();
|
ecore_x_sync();
|
||||||
e_alert_show("This is very bad. Enlightenment has segfaulted.\n"
|
e_alert_show("This is very bad. Enlightenment SEGV'd.\n"
|
||||||
"This is not meant to happen and is likely a sign of a\n"
|
|
||||||
"bug in Enlightenment or the libraries it relies on.\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"You can gdb attach to this process now to try debug it\n"
|
"This is not meant to happen and is likely a sign of\n"
|
||||||
"or you could exit, or just hit restart to try and get\n"
|
"a bug in Enlightenment or the libraries it relies\n"
|
||||||
"your desktop back the way it was. This may not always\n"
|
"on. You can gdb attach to this process now to try\n"
|
||||||
"work perfectly, but it is the best we can do for now.\n"
|
"debug it or you could exit, or just hit restart to\n"
|
||||||
|
"try and get your desktop back the way it was.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Please help us debug this by compiling Enlightenment and\n"
|
"Please compile everything with -g in your CFLAGS\n");
|
||||||
"all its dependency libraries with gdb debugging enabled\n"
|
|
||||||
"and gdb attach to E when this happens and try figure out\n"
|
|
||||||
"what's going on and send us gdb backtraces, variable dumps\n"
|
|
||||||
"etc.");
|
|
||||||
exit(-11);
|
exit(-11);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -76,21 +66,15 @@ e_sigill_act(int x, siginfo_t *info, void *data)
|
||||||
ecore_x_keyboard_ungrab();
|
ecore_x_keyboard_ungrab();
|
||||||
ecore_x_ungrab();
|
ecore_x_ungrab();
|
||||||
ecore_x_sync();
|
ecore_x_sync();
|
||||||
e_alert_show("This is very bad. Enlightenment has executed and illegal\n"
|
e_alert_show("This is very bad. Enlightenment SIGILL'd.\n"
|
||||||
"instruction. This is most likely because Enlightenment or\n"
|
|
||||||
"a library it depends on has been compiled for a CPU type\n"
|
|
||||||
"that you don't have.\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"You can gdb attach to this process now to try debug it\n"
|
"This is not meant to happen and is likely a sign of\n"
|
||||||
"or you could exit, or just hit restart to try and get\n"
|
"a bug in Enlightenment or the libraries it relies\n"
|
||||||
"your desktop back the way it was. This may not always\n"
|
"on. You can gdb attach to this process now to try\n"
|
||||||
"work perfectly, but it is the best we can do for now.\n"
|
"debug it or you could exit, or just hit restart to\n"
|
||||||
|
"try and get your desktop back the way it was.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Please help us debug this by compiling Enlightenment and\n"
|
"Please compile everything with -g in your CFLAGS\n");
|
||||||
"all its dependency libraries with gdb debugging enabled\n"
|
|
||||||
"and gdb attach to E when this happens and try figure out\n"
|
|
||||||
"what's going on and send us gdb backtraces, variable dumps\n"
|
|
||||||
"etc.");
|
|
||||||
exit(-11);
|
exit(-11);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,20 +86,15 @@ e_sigfpe_act(int x, siginfo_t *info, void *data)
|
||||||
ecore_x_keyboard_ungrab();
|
ecore_x_keyboard_ungrab();
|
||||||
ecore_x_ungrab();
|
ecore_x_ungrab();
|
||||||
ecore_x_sync();
|
ecore_x_sync();
|
||||||
e_alert_show("This is very bad. Enlightenment has recieved a floating\n"
|
e_alert_show("This is very bad. Enlightenment SIGFPE'd.\n"
|
||||||
"point exception. This is probably due to a divide by 0\n"
|
|
||||||
"in Enlightenment or a library it depends on.\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"You can gdb attach to this process now to try debug it\n"
|
"This is not meant to happen and is likely a sign of\n"
|
||||||
"or you could exit, or just hit restart to try and get\n"
|
"a bug in Enlightenment or the libraries it relies\n"
|
||||||
"your desktop back the way it was. This may not always\n"
|
"on. You can gdb attach to this process now to try\n"
|
||||||
"work perfectly, but it is the best we can do for now.\n"
|
"debug it or you could exit, or just hit restart to\n"
|
||||||
|
"try and get your desktop back the way it was.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Please help us debug this by compiling Enlightenment and\n"
|
"Please compile everything with -g in your CFLAGS\n");
|
||||||
"all its dependency libraries with gdb debugging enabled\n"
|
|
||||||
"and gdb attach to E when this happens and try figure out\n"
|
|
||||||
"what's going on and send us gdb backtraces, variable dumps\n"
|
|
||||||
"etc.");
|
|
||||||
exit(-11);
|
exit(-11);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,20 +106,15 @@ e_sigbus_act(int x, siginfo_t *info, void *data)
|
||||||
ecore_x_keyboard_ungrab();
|
ecore_x_keyboard_ungrab();
|
||||||
ecore_x_ungrab();
|
ecore_x_ungrab();
|
||||||
ecore_x_sync();
|
ecore_x_sync();
|
||||||
e_alert_show("This is very bad. Enlightenment has recieved a bus error.\n"
|
e_alert_show("This is very bad. Enlightenment SIGILL'd.\n"
|
||||||
"This could be for many reasons - accessing memory not in\n"
|
|
||||||
"its available address space or unable to be paged in.\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"You can gdb attach to this process now to try debug it\n"
|
"This is not meant to happen and is likely a sign of\n"
|
||||||
"or you could exit, or just hit restart to try and get\n"
|
"a bug in Enlightenment or the libraries it relies\n"
|
||||||
"your desktop back the way it was. This may not always\n"
|
"on. You can gdb attach to this process now to try\n"
|
||||||
"work perfectly, but it is the best we can do for now.\n"
|
"debug it or you could exit, or just hit restart to\n"
|
||||||
|
"try and get your desktop back the way it was.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Please help us debug this by compiling Enlightenment and\n"
|
"Please compile everything with -g in your CFLAGS\n");
|
||||||
"all its dependency libraries with gdb debugging enabled\n"
|
|
||||||
"and gdb attach to E when this happens and try figure out\n"
|
|
||||||
"what's going on and send us gdb backtraces, variable dumps\n"
|
|
||||||
"etc.");
|
|
||||||
exit(-11);
|
exit(-11);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,19 +126,14 @@ e_sigabrt_act(int x, siginfo_t *info, void *data)
|
||||||
ecore_x_keyboard_ungrab();
|
ecore_x_keyboard_ungrab();
|
||||||
ecore_x_ungrab();
|
ecore_x_ungrab();
|
||||||
ecore_x_sync();
|
ecore_x_sync();
|
||||||
e_alert_show("This is very bad. Enlightenment has recieved an abort.\n"
|
e_alert_show("This is very bad. Enlightenment SIGABRT'd.\n"
|
||||||
"This could be for many reasons - accessing memory not in\n"
|
|
||||||
"its available address space or unable to be paged in.\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"You can gdb attach to this process now to try debug it\n"
|
"This is not meant to happen and is likely a sign of\n"
|
||||||
"or you could exit, or just hit restart to try and get\n"
|
"a bug in Enlightenment or the libraries it relies\n"
|
||||||
"your desktop back the way it was. This may not always\n"
|
"on. You can gdb attach to this process now to try\n"
|
||||||
"work perfectly, but it is the best we can do for now.\n"
|
"debug it or you could exit, or just hit restart to\n"
|
||||||
|
"try and get your desktop back the way it was.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Please help us debug this by compiling Enlightenment and\n"
|
"Please compile everything with -g in your CFLAGS\n");
|
||||||
"all its dependency libraries with gdb debugging enabled\n"
|
|
||||||
"and gdb attach to E when this happens and try figure out\n"
|
|
||||||
"what's going on and send us gdb backtraces, variable dumps\n"
|
|
||||||
"etc.");
|
|
||||||
exit(-11);
|
exit(-11);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue