forked from AuroraMiddleware/gtk
Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com> Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai): * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that we link libgtk against X explicitely, since we make GTK+ calls for plug/socket. * gtk/queryimmodules.c: Use USE_LA_MODULES and G_MODULE_SUFFIX here. * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect XShmPutImage with #ifdef USE_SHM.
This commit is contained in:
parent
03813f369a
commit
e44f6a8a00
14
ChangeLog
14
ChangeLog
@ -1,3 +1,17 @@
|
|||||||
|
Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
|
||||||
|
|
||||||
|
* configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
|
||||||
|
we link libgtk against X explicitely, since we
|
||||||
|
make GTK+ calls for plug/socket.
|
||||||
|
|
||||||
|
* gtk/queryimmodules.c: Use USE_LA_MODULES and
|
||||||
|
G_MODULE_SUFFIX here.
|
||||||
|
|
||||||
|
* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
|
||||||
|
XShmPutImage with #ifdef USE_SHM.
|
||||||
|
|
||||||
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
|
||||||
|
|
||||||
|
* configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
|
||||||
|
we link libgtk against X explicitely, since we
|
||||||
|
make GTK+ calls for plug/socket.
|
||||||
|
|
||||||
|
* gtk/queryimmodules.c: Use USE_LA_MODULES and
|
||||||
|
G_MODULE_SUFFIX here.
|
||||||
|
|
||||||
|
* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
|
||||||
|
XShmPutImage with #ifdef USE_SHM.
|
||||||
|
|
||||||
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
|
||||||
|
|
||||||
|
* configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
|
||||||
|
we link libgtk against X explicitely, since we
|
||||||
|
make GTK+ calls for plug/socket.
|
||||||
|
|
||||||
|
* gtk/queryimmodules.c: Use USE_LA_MODULES and
|
||||||
|
G_MODULE_SUFFIX here.
|
||||||
|
|
||||||
|
* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
|
||||||
|
XShmPutImage with #ifdef USE_SHM.
|
||||||
|
|
||||||
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
|
||||||
|
|
||||||
|
* configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
|
||||||
|
we link libgtk against X explicitely, since we
|
||||||
|
make GTK+ calls for plug/socket.
|
||||||
|
|
||||||
|
* gtk/queryimmodules.c: Use USE_LA_MODULES and
|
||||||
|
G_MODULE_SUFFIX here.
|
||||||
|
|
||||||
|
* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
|
||||||
|
XShmPutImage with #ifdef USE_SHM.
|
||||||
|
|
||||||
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
|
||||||
|
|
||||||
|
* configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
|
||||||
|
we link libgtk against X explicitely, since we
|
||||||
|
make GTK+ calls for plug/socket.
|
||||||
|
|
||||||
|
* gtk/queryimmodules.c: Use USE_LA_MODULES and
|
||||||
|
G_MODULE_SUFFIX here.
|
||||||
|
|
||||||
|
* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
|
||||||
|
XShmPutImage with #ifdef USE_SHM.
|
||||||
|
|
||||||
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
* gtk/gtkfilesel.c (gtk_file_selection_populate):
|
||||||
|
@ -949,6 +949,7 @@ AC_SUBST(GDK_PIXBUF_DEP_CFLAGS)
|
|||||||
|
|
||||||
GDK_EXTRA_LIBS=$GDK_WLIBS
|
GDK_EXTRA_LIBS=$GDK_WLIBS
|
||||||
GDK_EXTRA_CFLAGS=
|
GDK_EXTRA_CFLAGS=
|
||||||
|
GTK_DEP_LIBS_FOR_X=
|
||||||
|
|
||||||
FREETYPE_LIBS=
|
FREETYPE_LIBS=
|
||||||
FREETYPE_CFLAGS=
|
FREETYPE_CFLAGS=
|
||||||
@ -1064,6 +1065,11 @@ 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_LIBS -lX11 $x_extra_libs $X_EXTRA_LIBS"
|
GDK_PIXBUF_XLIB_EXTRA_LIBS="$X_LIBS -lX11 $x_extra_libs $X_EXTRA_LIBS"
|
||||||
|
|
||||||
|
# GTK+ uses some X calls, so needs to link against X directly
|
||||||
|
if test $enable_explicit_deps != yes ; then
|
||||||
|
GTK_DEP_LIBS_FOR_X="$X_LIBS -lX11 $X_EXTRA_LIBS"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for Xinerama extension (Solaris impl or Xfree impl)
|
# Check for Xinerama extension (Solaris impl or Xfree impl)
|
||||||
|
|
||||||
gtk_save_cppflags="$CPPFLAGS"
|
gtk_save_cppflags="$CPPFLAGS"
|
||||||
@ -1395,7 +1401,7 @@ fi
|
|||||||
GTK_PACKAGES=atk
|
GTK_PACKAGES=atk
|
||||||
GTK_EXTRA_LIBS=
|
GTK_EXTRA_LIBS=
|
||||||
GTK_EXTRA_CFLAGS=
|
GTK_EXTRA_CFLAGS=
|
||||||
GTK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PACKAGES $GTK_PACKAGES` $GTK_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS"
|
GTK_DEP_LIBS="$GDK_EXTRA_LIBS $GTK_DEP_LIBS_FOR_X `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PACKAGES $GTK_PACKAGES` $GTK_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS"
|
||||||
GTK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PACKAGES $GTK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS $GTK_EXTRA_CFLAGS"
|
GTK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PACKAGES $GTK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS $GTK_EXTRA_CFLAGS"
|
||||||
|
|
||||||
AC_SUBST(GTK_PACKAGES)
|
AC_SUBST(GTK_PACKAGES)
|
||||||
|
@ -793,11 +793,13 @@ gdk_x11_draw_image (GdkDrawable *drawable,
|
|||||||
|
|
||||||
impl = GDK_DRAWABLE_IMPL_X11 (drawable);
|
impl = GDK_DRAWABLE_IMPL_X11 (drawable);
|
||||||
|
|
||||||
|
#ifdef USE_SHM
|
||||||
if (image->type == GDK_IMAGE_SHARED)
|
if (image->type == GDK_IMAGE_SHARED)
|
||||||
XShmPutImage (GDK_SCREEN_XDISPLAY (impl->screen), impl->xid,
|
XShmPutImage (GDK_SCREEN_XDISPLAY (impl->screen), impl->xid,
|
||||||
GDK_GC_GET_XGC (gc), GDK_IMAGE_XIMAGE (image),
|
GDK_GC_GET_XGC (gc), GDK_IMAGE_XIMAGE (image),
|
||||||
xsrc, ysrc, xdest, ydest, width, height, False);
|
xsrc, ysrc, xdest, ydest, width, height, False);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
XPutImage (GDK_SCREEN_XDISPLAY (impl->screen), impl->xid,
|
XPutImage (GDK_SCREEN_XDISPLAY (impl->screen), impl->xid,
|
||||||
GDK_GC_GET_XGC (gc), GDK_IMAGE_XIMAGE (image),
|
GDK_GC_GET_XGC (gc), GDK_IMAGE_XIMAGE (image),
|
||||||
xsrc, ysrc, xdest, ydest, width, height);
|
xsrc, ysrc, xdest, ydest, width, height);
|
||||||
|
@ -31,10 +31,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#if USE_LA_MODULES
|
||||||
#define SOEXT ".dll"
|
#define SOEXT ".la"
|
||||||
#else
|
#else
|
||||||
#define SOEXT ".so"
|
#define SOEXT ("." G_MODULE_SUFFIX)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <pango/pango-utils.h>
|
#include <pango/pango-utils.h>
|
||||||
@ -174,8 +174,7 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
while ((dent = g_dir_read_name (dir)))
|
while ((dent = g_dir_read_name (dir)))
|
||||||
{
|
{
|
||||||
int len = strlen (dent);
|
if (g_str_has_suffix (dent, SOEXT))
|
||||||
if (len > 3 && strcmp (dent + len - strlen (SOEXT), SOEXT) == 0)
|
|
||||||
error |= query_module (dirs[i], dent);
|
error |= query_module (dirs[i], dent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user