Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 143522 Details for
Bug 210167
net-p2p/linuxdcpp crashes on KDE4 with badmatch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
linuxdcpp-all-badmath.patch
linuxdcpp-all-badmath.patch (text/plain), 1.62 KB, created by
Togge
on 2008-02-14 18:56:08 UTC
(
hide
)
Description:
linuxdcpp-all-badmath.patch
Filename:
MIME Type:
Creator:
Togge
Created:
2008-02-14 18:56:08 UTC
Size:
1.62 KB
patch
obsolete
>Index: linux/wulfor.cc >=================================================================== >RCS file: /cvsroot/linuxdcpp/linuxdcpp/linux/wulfor.cc,v >retrieving revision 1.26 >diff -u -b -B -p -r1.26 wulfor.cc >--- linux/wulfor.cc 8 Feb 2008 05:30:53 -0000 1.26 >+++ linux/wulfor.cc 10 Feb 2008 17:25:18 -0000 >@@ -28,12 +28,24 @@ > #include "WulforUtil.hh" > #include <iostream> > #include <signal.h> >+#include <X11/Xlib.h> > > void callBack(void* x, const std::string& a) > { > std::cout << "Loading: " << a << std::endl; > } > >+static int(*old_x_error_handler) (Display *, XErrorEvent *); >+int bad_match_xerror_handler(Display *edpy, XErrorEvent *ee) { >+ if(ee->error_code == BadMatch){ >+ cerr << "(EE) Recieved an error from X!" << endl << \ >+ "(EE) This is probably caused by the system tray icon, please t ry disabling it." << endl; >+ return 0; >+ } >+ cerr << "(EE) Fatal Xerror: request code=" << ee->request_code << ", error code=" << ee->error_code << endl; >+ return old_x_error_handler(edpy, ee); >+} >+ > int main(int argc, char *argv[]) > { > // Initialize i18n support >@@ -69,6 +81,10 @@ int main(int argc, char *argv[]) > WulforSettingsManager::newInstance(); > WulforManager::start(); > gdk_threads_enter(); >+ >+ // install our Xerror handler, save the old one for restoring >+ old_x_error_handler = XSetErrorHandler(bad_match_xerror_handler); >+ > gtk_main(); > gdk_threads_leave(); > WulforManager::stop(); >@@ -76,6 +92,10 @@ int main(int argc, char *argv[]) > > std::cout << "Shutting down..." << std::endl; > shutdown(); >+ >+ // restore the old Xerror handler >+ XSetErrorHandler(old_x_error_handler); >+ old_x_error_handler = NULL; > > return 0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210167
: 143522 |
186821