From: espen Date: Wed, 27 Oct 2004 18:50:25 +0000 (+0000) Subject: gdkglue.c moved from main gdk directory and renamed X-Git-Url: https://git.distorted.org.uk/~mdw/clg/commitdiff_plain/9c7271c1a4c2b676f027dfacc2fe0daca7dd3759 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..48caf6b --- /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 ()); +}