diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-06-07 08:08:30 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-06-07 08:08:30 (GMT) |
commit | edb4cc7ce4e75ee2bd46f965f0724c54c134a1fd (patch) | |
tree | 7981088cb257579d4bcf74b7735557ca697528c7 /win/stubs.c | |
parent | 30a0f07209b1340b0060d238a1ec0bd3365f5692 (diff) | |
parent | e05c1d71ec11cc892731a999a9d521781ea8567e (diff) | |
download | tk-edb4cc7ce4e75ee2bd46f965f0724c54c134a1fd.zip tk-edb4cc7ce4e75ee2bd46f965f0724c54c134a1fd.tar.gz tk-edb4cc7ce4e75ee2bd46f965f0724c54c134a1fd.tar.bz2 |
Change XChangeWindowAttributes signature and many others to match Xorg, needed for Cygwin
Diffstat (limited to 'win/stubs.c')
-rw-r--r-- | win/stubs.c | 53 |
1 files changed, 35 insertions, 18 deletions
diff --git a/win/stubs.c b/win/stubs.c index 8381145..bf72b72 100644 --- a/win/stubs.c +++ b/win/stubs.c @@ -36,7 +36,7 @@ XStringListToTextProperty( * From Xlib.h */ -void +int XChangeProperty( Display *display, Window w, @@ -47,6 +47,7 @@ XChangeProperty( _Xconst unsigned char *data, int nelements) { + return Success; } Cursor @@ -63,7 +64,7 @@ XCreateGlyphCursor( } XIC -XCreateIC(void) +XCreateIC TCL_VARARGS_DEF(XIM,xim) { return NULL; } @@ -81,12 +82,13 @@ XCreatePixmapCursor( return (Cursor) NULL; } -void +int XDeleteProperty( Display *display, Window w, Atom property) { + return Success; } void @@ -103,18 +105,20 @@ XFilterEvent( return 0; } -void +int XForceScreenSaver( Display *display, int mode) { + return Success; } -void +int XFreeCursor( Display *display, Cursor cursor) { + return Success; } GContext @@ -180,27 +184,30 @@ XLookupColor( return Success; } -void +int XNextEvent( Display *display, XEvent *event_return) { + return Success; } -void +int XPutBackEvent( Display *display, XEvent *event) { + return Success; } -void +int XQueryColors( Display *display, Colormap colormap, XColor *defs_in_out, int ncolors) { + return Success; } int @@ -215,10 +222,11 @@ XQueryTree( return Success; } -void +int XRefreshKeyboardMapping( XMappingEvent *event_map) { + return Success; } Window @@ -229,12 +237,13 @@ XRootWindow( return (Window) NULL; } -void +int XSelectInput( Display *display, Window w, long event_mask) { + return Success; } int @@ -265,60 +274,67 @@ XSetErrorHandler( return NULL; } -void +int XSetIconName( Display *display, Window w, _Xconst char *icon_name) { + return Success; } -void +int XSetWindowBackground( Display *display, Window w, unsigned long background_pixel) { + return Success; } -void +int XSetWindowBackgroundPixmap( Display *display, Window w, Pixmap background_pixmap) { + return Success; } -void +int XSetWindowBorder( Display *display, Window w, unsigned long border_pixel) { + return Success; } -void +int XSetWindowBorderPixmap( Display *display, Window w, Pixmap border_pixmap) { + return Success; } -void +int XSetWindowBorderWidth( Display *display, Window w, unsigned int width) { + return Success; } -void +int XSetWindowColormap( Display *display, Window w, Colormap colormap) { + return Success; } Bool @@ -335,13 +351,14 @@ XTranslateCoordinates( return 0; } -void +int XWindowEvent( Display *display, Window w, long event_mask, XEvent *event_return) { + return Success; } int |