aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/awt/gtk/natGtkMainThread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/awt/gtk/natGtkMainThread.cc')
-rw-r--r--libjava/gnu/awt/gtk/natGtkMainThread.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/libjava/gnu/awt/gtk/natGtkMainThread.cc b/libjava/gnu/awt/gtk/natGtkMainThread.cc
new file mode 100644
index 0000000..9cc492c
--- /dev/null
+++ b/libjava/gnu/awt/gtk/natGtkMainThread.cc
@@ -0,0 +1,22 @@
+// This file was created by `gcjh -stubs'. -*- c++ -*-
+//
+// This file is intended to give you a head start on implementing native
+// methods using CNI.
+// Be aware: running `gcjh -stubs ' once more for this class may
+// overwrite any edits you have made to this file.
+
+#include <gnu/awt/gtk/GtkMainThread.h>
+#include <gcj/cni.h>
+
+#include <gtk/gtk.h>
+
+
+void
+gnu::awt::gtk::GtkMainThread::gtkMain ()
+{
+ GDK_THREADS_ENTER ();
+ gtk_main ();
+ GDK_THREADS_LEAVE ();
+}
+
+