[rkward-cvs] SF.net SVN: rkward:[3136] trunk/rkward/rkward/main.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Fri Oct 22 11:10:53 UTC 2010


Revision: 3136
          http://rkward.svn.sourceforge.net/rkward/?rev=3136&view=rev
Author:   tfry
Date:     2010-10-22 11:10:53 +0000 (Fri, 22 Oct 2010)

Log Message:
-----------
Also add thread initialization for libXt, for good measure

Modified Paths:
--------------
    trunk/rkward/rkward/main.cpp

Modified: trunk/rkward/rkward/main.cpp
===================================================================
--- trunk/rkward/rkward/main.cpp	2010-10-21 11:28:16 UTC (rev 3135)
+++ trunk/rkward/rkward/main.cpp	2010-10-22 11:10:53 UTC (rev 3136)
@@ -72,6 +72,7 @@
 #ifdef Q_WS_X11
 #	include <X11/X.h>
 #	include <X11/Xlib.h>
+#	include <X11/Intrinsic.h>
 #endif
 
 #include "debug.h"
@@ -96,6 +97,7 @@
 int main(int argc, char *argv[]) {
 #ifdef Q_WS_X11
 	XInitThreads ();	// Makes library (gWidgetsRGtk2) work on X11.
+	XtToolkitThreadInitialize ();
 #endif
 	options.add ("evaluate <Rcode>", ki18n ("After starting (and after loading the specified workspace, if applicable), evaluate the given R code."), 0);
 	options.add ("debug-level <level>", ki18n ("Verbosity of debug messages (0-5)"), "2");


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list