[rkward-cvs] SF.net SVN: rkward:[3135] trunk/rkward/rkward/main.cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Thu Oct 21 11:28:16 UTC 2010
Revision: 3135
http://rkward.svn.sourceforge.net/rkward/?rev=3135&view=rev
Author: tfry
Date: 2010-10-21 11:28:16 +0000 (Thu, 21 Oct 2010)
Log Message:
-----------
Experimental: Add a call to XInitThreads in order to make library (RGtk2) work on X11
Modified Paths:
--------------
trunk/rkward/rkward/main.cpp
Modified: trunk/rkward/rkward/main.cpp
===================================================================
--- trunk/rkward/rkward/main.cpp 2010-10-19 11:58:15 UTC (rev 3134)
+++ trunk/rkward/rkward/main.cpp 2010-10-21 11:28:16 UTC (rev 3135)
@@ -69,6 +69,10 @@
# include <stdio.h>
# include <windows.h>
#endif
+#ifdef Q_WS_X11
+# include <X11/X.h>
+# include <X11/Xlib.h>
+#endif
#include "debug.h"
@@ -90,6 +94,9 @@
}
int main(int argc, char *argv[]) {
+#ifdef Q_WS_X11
+ XInitThreads (); // Makes library (gWidgetsRGtk2) work on X11.
+#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");
options.add ("debug-flags <flags>", ki18n ("Mask for components to debug (see debug.h)"), "8191");
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