From: espen Date: Fri, 1 Jun 2007 09:23:41 +0000 (+0000) Subject: Minor code cleanup X-Git-Tag: clg-0-93~154 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/cda9fdb09f7c8d31e9966cec3039e803adf64ad2 Minor code cleanup --- diff --git a/gdk/alien/glue.c b/gdk/alien/glue.c index 6254a94..aebb0f1 100644 --- a/gdk/alien/glue.c +++ b/gdk/alien/glue.c @@ -21,24 +21,23 @@ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -/* $Id: glue.c,v 1.5 2007/06/01 09:17:17 espen Exp $ */ +/* $Id: glue.c,v 1.6 2007/06/01 09:23:41 espen Exp $ */ #include #ifdef GDK_WINDOWING_X11 #include +#endif gint clg_gdk_connection_number (GdkDisplay *display) { +#ifdef GDK_WINDOWING_X11 return ConnectionNumber (GDK_DISPLAY_XDISPLAY (display)); -} #else -gint clg_gdk_connection_number (void *display) -{ return -1; -} #endif +} GdkWindow *clg_gdk_cairo_surface_get_window (cairo_surface_t *surface)