X11 R6 was released in 1995 - time to let go.
[AC_MSG_RESULT([unknown])
AC_MSG_ERROR([xReply type unavailable. X11 is too old])])])
- # Check for XConvertCase, XInternAtoms (X11R6 specific)
-
- AC_CHECK_FUNCS(XConvertCase XInternAtoms)
-
- # Generic X11R6 check needed for XIM support; we could
- # probably use this to replace the above, but we'll
- # leave the separate checks for XConvertCase and XInternAtoms
- # for clarity
-
- have_x11r6=false
- AC_CHECK_FUNC(XAddConnectionWatch,
- have_x11r6=true)
-
- if $have_x11r6; then
- AC_DEFINE(HAVE_X11R6, 1, [Define if we have X11R6])
- fi
- AM_CONDITIONAL(HAVE_X11R6, $have_x11r6)
-
# Check for XKB support.
if test "x$enable_xkb" = "xyes"; then
XPACKAGES=
AM_CONDITIONAL(USE_X11, false)
- AM_CONDITIONAL(HAVE_X11R6, false)
fi
# Check for Pango flags
GdkEvent *event,
XEvent *xevent);
-#ifdef HAVE_X11R6
static void gdk_internal_connection_watch (Display *display,
XPointer arg,
gint fd,
gboolean opening,
XPointer *watch_data);
-#endif /* HAVE_X11R6 */
typedef struct _GdkEventTypeX11 GdkEventTypeX11;
xdisplay = XOpenDisplay (display_name);
if (!xdisplay)
return NULL;
-
+
display = g_object_new (GDK_TYPE_X11_DISPLAY, NULL);
display_x11 = GDK_X11_DISPLAY (display);
display_x11->xdisplay = xdisplay;
-#ifdef HAVE_X11R6
/* Set up handlers for Xlib internal connections */
XAddConnectionWatch (xdisplay, gdk_internal_connection_watch, NULL);
-#endif /* HAVE_X11R6 */
-
+
_gdk_x11_precache_atoms (display, precache_atoms, G_N_ELEMENTS (precache_atoms));
/* RandR must be initialized before we initialize the screens */
return display;
}
-#ifdef HAVE_X11R6
/*
* XLib internal connection handling
*/
else
gdk_remove_connection_handler ((GdkInternalConnection *)*watch_data);
}
-#endif /* HAVE_X11R6 */
static const gchar *
gdk_x11_display_get_name (GdkDisplay *display)
manager_class->get_atom_name = _gdk_x11_display_manager_get_atom_name;
manager_class->lookup_keyval = _gdk_x11_display_manager_lookup_keyval;
manager_class->get_keyval_name = _gdk_x11_display_manager_get_keyval_name;
-#ifdef HAVE_XCONVERTCASE
manager_class->keyval_convert_case = _gdk_x11_display_manager_keyval_convert_case;
-#endif
}
void
return XStringToKeysym (keyval_name);
}
-#ifdef HAVE_XCONVERTCASE
void
_gdk_x11_display_manager_keyval_convert_case (GdkDisplayManager *manager,
guint symbol,
if (upper)
*upper = xupper;
}
-#endif /* HAVE_XCONVERTCASE */
gint
_gdk_x11_get_group_for_state (GdkDisplay *display,
* Private function declarations
*/
-#ifndef HAVE_XCONVERTCASE
-static void gdkx_XConvertCase (KeySym symbol,
- KeySym *lower,
- KeySym *upper);
-#define XConvertCase gdkx_XConvertCase
-#endif
-
static int gdk_x_error (Display *display,
XErrorEvent *error);
static int gdk_x_io_error (Display *display);
const gchar *name);
gchar * _gdk_x11_display_manager_get_keyval_name (GdkDisplayManager *manager,
guint keyval);
-#ifdef HAVE_XCONVERTCASE
void _gdk_x11_display_manager_keyval_convert_case (GdkDisplayManager *manager,
guint symbol,
guint *lower,
guint *upper);
-#endif
GdkCursor *_gdk_x11_display_get_cursor_for_type (GdkDisplay *display,
GdkCursorType type);
}
if (n_xatoms)
- {
-#ifdef HAVE_XINTERNATOMS
- XInternAtoms (GDK_DISPLAY_XDISPLAY (display),
- (char **)xatom_names, n_xatoms, False, xatoms);
-#else
- for (i = 0; i < n_xatoms; i++)
- xatoms[i] = XInternAtom (GDK_DISPLAY_XDISPLAY (display),
- xatom_names[i], False);
-#endif
- }
+ XInternAtoms (GDK_DISPLAY_XDISPLAY (display),
+ (char **)xatom_names, n_xatoms, False, xatoms);
for (i = 0; i < n_xatoms; i++)
insert_atom_pair (display, atoms[i], xatoms[i]);
client->cb_data = cb_data;
client->grab = grab;
client->ungrab = ungrab;
-
client->manager_window = None;
client->settings = NULL;
atom_names[1] = "_XSETTINGS_SETTINGS";
atom_names[2] = "MANAGER";
-#ifdef HAVE_XINTERNATOMS
XInternAtoms (display, atom_names, 3, False, atoms);
-#else
- atoms[0] = XInternAtom (display, atom_names[0], False);
- atoms[1] = XInternAtom (display, atom_names[1], False);
- atoms[2] = XInternAtom (display, atom_names[2], False);
-#endif
-
+
client->selection_atom = atoms[0];
client->xsettings_atom = atoms[1];
client->manager_atom = atoms[2];
imxim.c
libstatic_im_xim_la_SOURCES = $(im_xim_la_SOURCES)
im_xim_la_LIBADD = $(LDADDS)
-if HAVE_X11R6
if INCLUDE_IM_XIM
STATIC_XIM_MODULE = libstatic-im-xim.la
else
XIM_MODULE=im-xim.la
endif
-endif
im_am_et_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
im_am_et_la_SOURCES = imam-et.c