From: espen Date: Wed, 27 Oct 2004 18:50:25 +0000 (+0000) Subject: gdkglue.c moved from main gdk directory and renamed X-Git-Tag: clg-0-90~259 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/3aedf9ef6b5e217b01bd358b82e9500f2b89bc2b gdkglue.c moved from main gdk directory and renamed --- diff --git a/gdk/alien/glue.c b/gdk/alien/glue.c new file mode 100644 index 0000000..f16a79c --- /dev/null +++ b/gdk/alien/glue.c @@ -0,0 +1,38 @@ +/* Common Lisp bindings for GTK+ v2.0 + * Copyright (C) 1999-2000 Espen S. Johnsen + * + * 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 +#include + + +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 ()); +}