chiark / gitweb /
gdkglue.c moved from main gdk directory and renamed
authorespen <espen>
Wed, 27 Oct 2004 18:50:25 +0000 (18:50 +0000)
committerespen <espen>
Wed, 27 Oct 2004 18:50:25 +0000 (18:50 +0000)
gdk/alien/glue.c [new file with mode: 0644]

diff --git a/gdk/alien/glue.c b/gdk/alien/glue.c
new file mode 100644 (file)
index 0000000..48caf6b
--- /dev/null
@@ -0,0 +1,38 @@
+/* Common Lisp bindings for GTK+ v2.0
+ * Copyright (C) 1999-2000 Espen S. Johnsen <espejohn@online.no>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+/* $Id: glue.c,v 1.1 2004-10-27 18:50:25 espen Exp $ */
+
+
+#include <gdk/gdk.h>
+#include <gdk/gdkx.h>
+
+
+extern Display *gdk_display;
+
+gint gdk_connection_number ()
+{
+  return ConnectionNumber (gdk_display); 
+}
+
+
+GdkWindow*
+gdk_get_root_window ()
+{
+  return gdk_window_foreign_new (GDK_ROOT_WINDOW ());
+}