Doc fixes.
Tue Apr 30 12:28:27 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdisplay.c gdk/gdkpango.c gdk/gdkpixmap.c gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkx.h: Doc fixes. Tue Apr 30 11:37:09 2002 Owen Taylor <otaylor@redhat.com> * modules/input/gtkimcontextxim.c: Make multihead-safe; use a different IM context per display. * configure.in acconfig.h: Add Xinerama checks from multihead branch, changing HAS_XINERAMA => HAVE_XINERAMA. * gdk/x11/gdkdisplay-x11.c: HAS_XINERAMA => HAVE_XINERAMA. 2002-04-29 Alex Larsson <alexl@redhat.com> * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Use tmp also if foreground is set.
This commit is contained in:

committed by
Owen Taylor

parent
7618be2daf
commit
3e8df3c326
@ -29,8 +29,11 @@
|
|||||||
#undef HAVE_STPCPY
|
#undef HAVE_STPCPY
|
||||||
#undef HAVE_XSHM_H
|
#undef HAVE_XSHM_H
|
||||||
#undef HAVE_SHAPE_EXT
|
#undef HAVE_SHAPE_EXT
|
||||||
|
#undef HAVE_SOLARIS_XINERAMA
|
||||||
#undef HAVE_SYS_SELECT_H
|
#undef HAVE_SYS_SELECT_H
|
||||||
#undef HAVE_SYS_TIME_H
|
#undef HAVE_SYS_TIME_H
|
||||||
|
#undef HAVE_XFREE_XINERAMA
|
||||||
|
#undef HAVE_XINERAMA
|
||||||
#undef HAVE_WINSOCK_H
|
#undef HAVE_WINSOCK_H
|
||||||
#undef HAVE_WINTAB
|
#undef HAVE_WINTAB
|
||||||
#undef HAVE_XCONVERTCASE
|
#undef HAVE_XCONVERTCASE
|
||||||
|
37
configure.in
37
configure.in
@ -1019,6 +1019,43 @@ if test "x$gdktarget" = "xx11"; then
|
|||||||
# Don't ever pull in the pangoxft libraries for gdk-pixbuf-x11
|
# Don't ever pull in the pangoxft libraries for gdk-pixbuf-x11
|
||||||
GDK_PIXBUF_XLIB_EXTRA_LIBS="$x_extra_libs `$PKG_CONFIG --libs pangox`"
|
GDK_PIXBUF_XLIB_EXTRA_LIBS="$x_extra_libs `$PKG_CONFIG --libs pangox`"
|
||||||
|
|
||||||
|
# Check for Xinerama extension (Solaris impl or Xfree impl)
|
||||||
|
|
||||||
|
case "$host" in
|
||||||
|
*-*-solaris*)
|
||||||
|
# Check for solaris
|
||||||
|
use_solaris_xinerama=yes
|
||||||
|
AC_CHECK_LIB(Xext, XineramaGetInfo,
|
||||||
|
use_solaris_xinerama=yes, use_solaris_xinerama=no)
|
||||||
|
if test "x$use_solaris_xinerama" == "xyes"; then
|
||||||
|
AC_CHECK_HEADER(X11/extensions/xinerama.h,
|
||||||
|
if test -z "`echo $x_extra_libs $x_libs | grep "\-lXext" 2> /dev/null`"; then
|
||||||
|
x_extra_libs="-lXext $x_extra_libs"
|
||||||
|
fi
|
||||||
|
AC_DEFINE(HAVE_SOLARIS_XINERAMA)
|
||||||
|
AC_DEFINE(HAVE_XINERAMA), use_solaris_xinerama=no)
|
||||||
|
fi
|
||||||
|
AC_MSG_CHECKING(for Xinerama support on Solaris)
|
||||||
|
AC_MSG_RESULT($use_solaris_xinerama);
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Check for XFree
|
||||||
|
use_xfree_xinerama=yes
|
||||||
|
AC_CHECK_LIB(Xinerama, XineramaQueryExtension,
|
||||||
|
[AC_CHECK_HEADER(extensions/Xinerama.h,
|
||||||
|
x_extra_libs="-lXinerama $x_extra_libs"
|
||||||
|
if test -z "`echo $x_extra_libs $x_libs | grep "\-lXext" 2> /dev/null`"; then
|
||||||
|
x_extra_libs="-lXext $x_extra_libs"
|
||||||
|
fi
|
||||||
|
AC_DEFINE(HAVE_XFREE_XINERAMA)
|
||||||
|
AC_DEFINE(HAVE_XINERAMA),
|
||||||
|
use_xfree_xinerama=no)],
|
||||||
|
use_xfree_xinerama=no)
|
||||||
|
AC_MSG_CHECKING(for Xinerama support on XFree86)
|
||||||
|
AC_MSG_RESULT($use_xfree_xinerama);
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Check for shaped window extension
|
# Check for shaped window extension
|
||||||
|
|
||||||
AC_CHECK_LIB(Xext, XShapeCombineMask,
|
AC_CHECK_LIB(Xext, XShapeCombineMask,
|
||||||
|
@ -230,7 +230,6 @@ gdk_list_displays (void)
|
|||||||
/**
|
/**
|
||||||
* gdk_display_get_event:
|
* gdk_display_get_event:
|
||||||
* @display: a #GdkDisplay
|
* @display: a #GdkDisplay
|
||||||
* @event: a #GdkEvent
|
|
||||||
*
|
*
|
||||||
* Gets the next #GdkEvent to be processed for @display, fetching events from the
|
* Gets the next #GdkEvent to be processed for @display, fetching events from the
|
||||||
* windowing system if necessary.
|
* windowing system if necessary.
|
||||||
@ -249,7 +248,7 @@ gdk_display_get_event (GdkDisplay *display)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* gdk_display_peek_event:
|
* gdk_display_peek_event:
|
||||||
* @void:
|
* @display: a #GdkDisplay
|
||||||
*
|
*
|
||||||
* Gets a copy of the first #GdkEvent in the @display's event queue, without
|
* Gets a copy of the first #GdkEvent in the @display's event queue, without
|
||||||
* removing the event from the queue. (Note that this function will
|
* removing the event from the queue. (Note that this function will
|
||||||
|
@ -275,7 +275,7 @@ gdk_draw_layout_line_with_colors (GdkDrawable *drawable,
|
|||||||
tmp.green = foreground->green;
|
tmp.green = foreground->green;
|
||||||
}
|
}
|
||||||
|
|
||||||
fg_gc = gdk_pango_get_gc (drawable, context, fg_set ? &tmp : NULL,
|
fg_gc = gdk_pango_get_gc (drawable, context, (fg_set || foreground) ? &tmp : NULL,
|
||||||
stipple, gc);
|
stipple, gc);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -82,10 +82,10 @@ GdkPixmap* gdk_pixmap_foreign_new (GdkNativeWindow anid);
|
|||||||
GdkPixmap* gdk_pixmap_lookup (GdkNativeWindow anid);
|
GdkPixmap* gdk_pixmap_lookup (GdkNativeWindow anid);
|
||||||
#endif /* GDK_MULTIHEAD_SAFE */
|
#endif /* GDK_MULTIHEAD_SAFE */
|
||||||
|
|
||||||
GdkPixmap* gdk_pixmap_foreign_new_for_screen (GdkScreen *screen,
|
GdkPixmap* gdk_pixmap_foreign_new_for_display (GdkDisplay *display,
|
||||||
GdkNativeWindow anid);
|
GdkNativeWindow anid);
|
||||||
GdkPixmap* gdk_pixmap_lookup_for_display (GdkDisplay *display,
|
GdkPixmap* gdk_pixmap_lookup_for_display (GdkDisplay *display,
|
||||||
GdkNativeWindow anid);
|
GdkNativeWindow anid);
|
||||||
|
|
||||||
#ifndef GDK_DISABLE_DEPRECATED
|
#ifndef GDK_DISABLE_DEPRECATED
|
||||||
#define gdk_bitmap_ref gdk_drawable_ref
|
#define gdk_bitmap_ref gdk_drawable_ref
|
||||||
|
@ -41,10 +41,10 @@
|
|||||||
#include <X11/XKBlib.h>
|
#include <X11/XKBlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAS_SOLARIS_XINERAMA
|
#ifdef HAVE_SOLARIS_XINERAMA
|
||||||
#include <X11/extensions/xinerama.h>
|
#include <X11/extensions/xinerama.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAS_XFREE_XINERAMA
|
#ifdef HAVE_XFREE_XINERAMA
|
||||||
#include <X11/extensions/Xinerama.h>
|
#include <X11/extensions/Xinerama.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -101,11 +101,11 @@ gdk_display_x11_class_init (GdkDisplayX11Class * class)
|
|||||||
parent_class = g_type_class_peek_parent (class);
|
parent_class = g_type_class_peek_parent (class);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAS_XINERAMA
|
#ifdef HAVE_XINERAMA
|
||||||
static gboolean
|
static gboolean
|
||||||
check_solaris_xinerama (GdkScreen *screen)
|
check_solaris_xinerama (GdkScreen *screen)
|
||||||
{
|
{
|
||||||
#ifdef HAS_SOLARIS_XINERAMA
|
#ifdef HAVE_SOLARIS_XINERAMA
|
||||||
if (XineramaGetState (GDK_SCREEN_XDISPLAY (screen),
|
if (XineramaGetState (GDK_SCREEN_XDISPLAY (screen),
|
||||||
gdk_screen_get_number (screen)))
|
gdk_screen_get_number (screen)))
|
||||||
{
|
{
|
||||||
@ -139,7 +139,7 @@ check_solaris_xinerama (GdkScreen *screen)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* HAS_SOLARIS_XINERAMA */
|
#endif /* HAVE_SOLARIS_XINERAMA */
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -147,7 +147,7 @@ check_solaris_xinerama (GdkScreen *screen)
|
|||||||
static gboolean
|
static gboolean
|
||||||
check_xfree_xinerama (GdkScreen *screen)
|
check_xfree_xinerama (GdkScreen *screen)
|
||||||
{
|
{
|
||||||
#ifdef HAS_XFREE_XINERAMA
|
#ifdef HAVE_XFREE_XINERAMA
|
||||||
if (XineramaIsActive (GDK_SCREEN_XDISPLAY (screen)))
|
if (XineramaIsActive (GDK_SCREEN_XDISPLAY (screen)))
|
||||||
{
|
{
|
||||||
XineramaScreenInfo *monitors = XineramaQueryScreens (GDK_SCREEN_XDISPLAY (screen),
|
XineramaScreenInfo *monitors = XineramaQueryScreens (GDK_SCREEN_XDISPLAY (screen),
|
||||||
@ -178,18 +178,18 @@ check_xfree_xinerama (GdkScreen *screen)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* HAS_XFREE_XINERAMA */
|
#endif /* HAVE_XFREE_XINERAMA */
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#endif /* HAS_XINERAMA */
|
#endif /* HAVE_XINERAMA */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_xinerama_support (GdkScreen * screen)
|
init_xinerama_support (GdkScreen * screen)
|
||||||
{
|
{
|
||||||
GdkScreenX11 *screen_x11 = GDK_SCREEN_X11 (screen);
|
GdkScreenX11 *screen_x11 = GDK_SCREEN_X11 (screen);
|
||||||
|
|
||||||
#ifdef HAS_XINERAMA
|
#ifdef HAVE_XINERAMA
|
||||||
int opcode, firstevent, firsterror;
|
int opcode, firstevent, firsterror;
|
||||||
gint result;
|
gint result;
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ init_xinerama_support (GdkScreen * screen)
|
|||||||
check_xfree_xinerama (screen))
|
check_xfree_xinerama (screen))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif /* HAS_XINERAMA */
|
#endif /* HAVE_XINERAMA */
|
||||||
|
|
||||||
/* No Xinerama
|
/* No Xinerama
|
||||||
*/
|
*/
|
||||||
|
@ -2097,7 +2097,7 @@ struct _NetWmSupportedAtoms
|
|||||||
* a way that impacts persistent application state. A common bug
|
* a way that impacts persistent application state. A common bug
|
||||||
* is that your application can start up before the window manager
|
* is that your application can start up before the window manager
|
||||||
* does when the user logs in, and before the window manager starts
|
* does when the user logs in, and before the window manager starts
|
||||||
* gdk_net_wm_supports() will return %FALSE for every property.
|
* gdk_x11_screen_supports_net_wm_hint() will return %FALSE for every property.
|
||||||
*
|
*
|
||||||
* Return value: %TRUE if the window manager supports @property
|
* Return value: %TRUE if the window manager supports @property
|
||||||
**/
|
**/
|
||||||
@ -2197,7 +2197,6 @@ gdk_x11_screen_supports_net_wm_hint (GdkScreen *screen,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* gdk_net_wm_supports:
|
* gdk_net_wm_supports:
|
||||||
* @screen : the relevant #GdkScreen.
|
|
||||||
* @property: a property atom.
|
* @property: a property atom.
|
||||||
*
|
*
|
||||||
* This function is specific to the X11 backend of GDK, and indicates
|
* This function is specific to the X11 backend of GDK, and indicates
|
||||||
|
@ -311,7 +311,7 @@ gdk_pixmap_create_from_data (GdkWindow *window,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* gdk_pixmap_foreign_new_for_display:
|
* gdk_pixmap_foreign_new_for_display:
|
||||||
* @screen : The #GdkScreen the @anid is located.
|
* @display: The #GdkDisplay where @anid is located.
|
||||||
* @anid: a native pixmap handle.
|
* @anid: a native pixmap handle.
|
||||||
*
|
*
|
||||||
* Wraps a native window in a #GdkPixmap.
|
* Wraps a native window in a #GdkPixmap.
|
||||||
|
@ -145,12 +145,10 @@ void gdk_x11_ungrab_server ();
|
|||||||
|
|
||||||
GdkDisplay *gdk_x11_lookup_xdisplay (Display *xdisplay);
|
GdkDisplay *gdk_x11_lookup_xdisplay (Display *xdisplay);
|
||||||
|
|
||||||
GList *gdk_list_visuals_for_screen (GdkScreen *screen);
|
|
||||||
|
|
||||||
|
|
||||||
/* Functions to get the X Atom equivalent to the GdkAtom */
|
/* Functions to get the X Atom equivalent to the GdkAtom */
|
||||||
Atom gdk_x11_atom_to_xatom_for_display (GdkDisplay *display,
|
Atom gdk_x11_atom_to_xatom_for_display (GdkDisplay *display,
|
||||||
GdkAtom virtual_atom);
|
GdkAtom atom);
|
||||||
GdkAtom gdk_x11_xatom_to_atom_for_display (GdkDisplay *display,
|
GdkAtom gdk_x11_xatom_to_atom_for_display (GdkDisplay *display,
|
||||||
Atom xatom);
|
Atom xatom);
|
||||||
Atom gdk_x11_get_xatom_by_name_for_display (GdkDisplay *display,
|
Atom gdk_x11_get_xatom_by_name_for_display (GdkDisplay *display,
|
||||||
|
Reference in New Issue
Block a user