filename | src/gtkui/gtkui.c |
changeset | 658:f5926310bfbe |
prev | 630:50addb748df5 |
next | 669:ab344e42bca9 |
author | nkeynes |
date | Wed Apr 16 12:43:52 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Start removing X11isms from gtkui into drivers Overhaul the configure rules for figuring out the video driver |
file | annotate | diff | log | raw |
1.1 --- a/src/gtkui/gtkui.c Tue Feb 12 08:36:29 2008 +00001.2 +++ b/src/gtkui/gtkui.c Wed Apr 16 12:43:52 2008 +00001.3 @@ -529,69 +529,3 @@1.4 }1.5 }1.7 -/************* X11-specificness **********/1.8 -#include <gdk/gdkx.h>1.9 -1.10 -guint gdk_keycode_to_modifier( GdkDisplay *display, guint keycode )1.11 -{1.12 - int i;1.13 - int result = 0;1.14 - Display *xdisplay = GDK_DISPLAY_XDISPLAY (display);1.15 - XModifierKeymap *keymap = XGetModifierMapping( xdisplay );1.16 - for( i=0; i<8*keymap->max_keypermod; i++ ) {1.17 - if( keymap->modifiermap[i] == keycode ) {1.18 - result = 1 << (i/keymap->max_keypermod);1.19 - break;1.20 - }1.21 - }1.22 - XFreeModifiermap(keymap);1.23 - return result;1.24 -}1.25 -1.26 -#if !(GTK_CHECK_VERSION(2,8,0))1.27 -/* gdk_display_warp_pointer was added in GTK 2.8. If we're using an earlier1.28 - * version, include the code here. (Can't just set the dependency on 2.8 as1.29 - * it still hasn't been ported to OSX...) Original copyright statement belo1.30 - */1.31 -1.32 -/* GDK - The GIMP Drawing Kit1.33 - * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald1.34 - *1.35 - * This library is free software; you can redistribute it and/or1.36 - * modify it under the terms of the GNU Lesser General Public1.37 - * License as published by the Free Software Foundation; either1.38 - * version 2 of the License, or (at your option) any later version.1.39 - *1.40 - * This library is distributed in the hope that it will be useful,1.41 - * but WITHOUT ANY WARRANTY; without even the implied warranty of1.42 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU1.43 - * Lesser General Public License for more details.1.44 - *1.45 - * You should have received a copy of the GNU Lesser General Public1.46 - * License along with this library; if not, write to the1.47 - * Free Software Foundation, Inc., 59 Temple Place - Suite 330,1.48 - * Boston, MA 02111-1307, USA.1.49 - */1.50 -1.51 -/*1.52 - * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS1.53 - * file for a list of people on the GTK+ Team. See the ChangeLog1.54 - * files for a list of changes. These files are distributed with1.55 - * GTK+ at ftp://ftp.gtk.org/pub/gtk/.1.56 - */1.57 -void gdk_display_warp_pointer (GdkDisplay *display,1.58 - GdkScreen *screen,1.59 - gint x,1.60 - gint y)1.61 -{1.62 - Display *xdisplay;1.63 - Window dest;1.64 -1.65 - xdisplay = GDK_DISPLAY_XDISPLAY (display);1.66 - dest = GDK_WINDOW_XWINDOW (gdk_screen_get_root_window (screen));1.67 -1.68 - XWarpPointer (xdisplay, None, dest, 0, 0, 0, 0, x, y);1.69 -}1.70 -1.71 -#endif1.72 -
.