all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* GTK emacs can't load PNG files for themes
@ 2003-01-22  2:13 Miles Bader
  2003-01-22 14:23 ` Raja R Harinath
  0 siblings, 1 reply; 2+ messages in thread
From: Miles Bader @ 2003-01-22  2:13 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1738 bytes --]

When I configure CVS emacs to use GTK, it doesn't display scrollbars or
menus correctly:  menu text and background get displayed, but the
scrollbar thumb and menu highlight box are not displayed.

The reason seems to be that I use a pixmap GTK theme, and it can't load
the theme's various PNG image files for some reason.  Here's the first
few stderr messages when I start `LANG=C emacs-gtk -q >& /tmp/,emacs-errs':


   ** (emacs-gtk:17705): WARNING **: Pixbuf theme: Cannot load pixmap file /home/soft1/miles/.themes/MooMarble/gtk-2.0/brown_bg1.png: Failed to load image '/home/soft1/miles/.themes/MooMarble/gtk-2.0/brown_bg1.png': Fatal error in PNG image file: Incompatible libpng version in application and library

   (emacs-gtk:17705): GdkPixbuf-CRITICAL **: file gdk-pixbuf.c: line 373 (gdk_pixbuf_get_width): assertion `pixbuf != NULL' failed

   (emacs-gtk:17705): GdkPixbuf-CRITICAL **: file gdk-pixbuf.c: line 389 (gdk_pixbuf_get_height): assertion `pixbuf != NULL' failed

   ** (emacs-gtk:17705): WARNING **: Invalid borders specified for theme pixmap:
           /home/soft1/miles/.themes/MooMarble/gtk-2.0/brown_bg1.png,
   borders don't fit within the image

   (emacs-gtk:17705): GdkPixbuf-CRITICAL **: file gdk-pixbuf.c: line 309 (gdk_pixbuf_get_n_channels): assertion `pixbuf != NULL' failed

   ...lots more of the same deleted...


I'm not sure why it has a problem, as other GTK 2.0 apps I have seem to
function correctly (at least, gnome-terminal, and gtk-demo) and display
scrollbars/menus fine.

I do note, however, that other GTK apps don't seem to use libpng,
whereas emacs does, so perhaps there's a conflict there.

Here's some more info as attachments:


Output of emacs `configure --with-x-toolkit=gtk':



[-- Attachment #2: output of emacs `configure --with-x-toolkit=gtk' --]
[-- Type: text/plain, Size: 12965 bytes --]

configure: loading site script /usr/local/share/config.site
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc -pipe
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -pipe accepts -g... yes
checking for gcc -pipe option to accept ANSI C... none needed
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -pipe -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for install-info... /usr/sbin/install-info
checking for install-info... (cached) /usr/sbin/install-info
checking for install-info... (cached) /usr/sbin/install-info
checking for egrep... grep -E
checking for AIX... no
configure: checking the machine- and system-dependent files to find out
 - which libraries the lib-src programs will want, and
 - whether the GNU malloc routines are usable...
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking for _oss_ioctl in -lossaudio... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking linux/version.h usability... yes
checking linux/version.h presence... yes
checking for linux/version.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking for strings.h... (cached) yes
checking coff.h usability... no
checking coff.h presence... no
checking for coff.h... no
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/vlimit.h usability... yes
checking sys/vlimit.h presence... yes
checking for sys/vlimit.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for term.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether sys_siglist is declared... no
checking whether __sys_siglist is declared... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for struct utimbuf... yes
checking return type of signal handlers... void
checking for speed_t... yes
checking for struct timeval... yes
checking for struct exception... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for struct tm.tm_gmtoff... yes
checking for function prototypes... yes
checking for working volatile... yes
checking for an ANSI C-conforming const... yes
checking for void * support... yes
checking whether make sets $(MAKE)... yes
checking for long file names... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for malloc_get_state... yes
checking for malloc_set_state... yes
checking whether __after_morecore_hook exists... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for dnet_ntoa in -ldnet... no
checking for main in -lXbsd... no
checking for cma_open in -lpthreads... no
checking for XFree86 in /usr/X386... no
checking whether X on GNU/Linux needs -b to link... no
checking for Xkb... yes
checking for XrmSetDatabase... yes
checking for XScreenResourceString... yes
checking for XScreenNumberOfScreen... yes
checking for XSetWMProtocols... yes
checking X11 version 6... 6 or newer
checking X11 version 5... 5 or newer
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.0.1 glib-2.0 >= 2.0.1... yes
checking GTK_CFLAGS... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
checking GTK_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
checking X11/xpm.h usability... yes
checking X11/xpm.h presence... yes
checking for X11/xpm.h... yes
checking for XpmReadFileToPixmap in -lXpm... yes
checking for XpmReturnAllocPixels preprocessor define... yes
checking jerror.h usability... yes
checking jerror.h presence... yes
checking for jerror.h... yes
checking for jpeg_destroy_compress in -ljpeg... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_get_channels in -lpng... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for TIFFGetVersion in -ltiff... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
checking for EGifPutExtensionLast in -lungif... yes
checking Carbon/Carbon.h usability... no
checking Carbon/Carbon.h presence... no
checking for Carbon/Carbon.h... no
checking X11/SM/SMlib.h usability... yes
checking X11/SM/SMlib.h presence... yes
checking for X11/SM/SMlib.h... yes
checking for SmcOpenConnection in -lSM... yes
checking whether netdb declares h_errno... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for sqrt in -lm... yes
checking for maillock in -lmail... no
checking for maillock in -llockfile... no
checking for liblockfile.so... no
checking for touchlock... no
checking maillock.h usability... no
checking maillock.h presence... no
checking for maillock.h... no
checking for gethostname... yes
checking for getdomainname... yes
checking for dup2... yes
checking for rename... yes
checking for closedir... yes
checking for mkdir... yes
checking for rmdir... yes
checking for sysinfo... yes
checking for random... yes
checking for lrand48... yes
checking for bcopy... yes
checking for bcmp... yes
checking for logb... yes
checking for frexp... yes
checking for fmod... yes
checking for rint... yes
checking for cbrt... yes
checking for ftime... yes
checking for res_init... no
checking for setsid... yes
checking for strerror... yes
checking for fpathconf... yes
checking for select... yes
checking for mktime... yes
checking for euidaccess... yes
checking for getpagesize... (cached) yes
checking for tzset... yes
checking for setlocale... yes
checking for utimes... yes
checking for setrlimit... yes
checking for setpgid... yes
checking for getcwd... yes
checking for getwd... yes
checking for shutdown... yes
checking for strftime... yes
checking for getaddrinfo... yes
checking for __fpending... yes
checking for mblen... yes
checking for mbrlen... yes
checking for mbsinit... yes
checking for strsignal... yes
checking for setitimer... yes
checking for ualarm... yes
checking for index... yes
checking for rindex... yes
checking for sendto... yes
checking for recvfrom... yes
checking for getsockopt... yes
checking for setsockopt... yes
checking for getsockname... yes
checking for getpeername... yes
checking for gai_strerror... yes
checking for mkstemp... yes
checking for getline... yes
checking for getdelim... yes
checking for mremap... yes
checking for memmove... yes
checking for fsync... yes
checking for bzero... yes
checking for memset... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for getloadavg... yes
checking for pstat_getdynamic... no
checking for kstat_open in -lkstat... no
checking for getloadavg... yes
checking whether getloadavg requires setgid... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... yes
checking whether getpgrp requires zero arguments... yes
checking for grantpt... yes
checking for getpt... yes
checking for tparm in -lncurses... yes
checking for dgettext in -lintl... no
checking whether localtime caches TZ... no
checking for gettimeofday... yes
checking whether gettimeofday can accept two arguments... yes
checking for struct timezone... yes
checking for socket... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking whether system supports dynamic ptys... yes
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for nl_langinfo and CODESET... yes
checking for size_t... yes
checking for C restrict keyword... __restrict
checking for C restricted array declarations... yes
checking nlist.h usability... no
checking nlist.h presence... no
checking for nlist.h... no

Configured for `i686-pc-linux-gnu'.

  Where should the build process find the source code?    /usr/local/src/emacs
  What operating system and machine description files should Emacs use?
        `s/gnu-linux.h' and `m/intel386.h'
  What compiler should emacs be built with?               gcc -pipe -g -O2
  Should Emacs use the GNU version of malloc?             yes
      (Using Doug Lea's new malloc from the GNU C Library.)
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK
  Where do we find X Windows header files?                /usr/X11R6/include
  Where do we find X Windows libraries?                   /usr/X11R6/lib
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use -lungif?                                 yes
  Does Emacs use -lpng?                                   yes
  Does Emacs use X toolkit scroll bars?                   yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib-src/Makefile.c
config.status: creating oldXMenu/Makefile
config.status: creating man/Makefile
config.status: creating lwlib/Makefile
config.status: creating src/Makefile.c
config.status: creating lisp/Makefile
config.status: creating lispref/Makefile
config.status: creating lispintro/Makefile
config.status: creating leim/Makefile
config.status: creating src/config.h
config.status: executing default commands
creating src/epaths.h
src/epaths.h is unchanged
creating lib-src/Makefile
creating src/Makefile

[-- Attachment #3: Type: text/plain, Size: 23 bytes --]




Emacs ldd output:



[-- Attachment #4: emacs ldd output --]
[-- Type: text/plain, Size: 1795 bytes --]

/usr/local/bin/emacs-gtk:
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x4001d000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x40229000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x4028a000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x402a0000)
	libm.so.6 => /lib/libm.so.6 (0x402b1000)
	libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x402d2000)
	libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x402f0000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x402fd000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x4032c000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x4035b000)
	libdl.so.2 => /lib/libdl.so.2 (0x4035f000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40362000)
	libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x403c5000)
	libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x403ce000)
	libtiff.so.3 => /usr/lib/libtiff.so.3 (0x403e4000)
	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40427000)
	libpng.so.2 => /usr/lib/libpng.so.2 (0x40445000)
	libz.so.1 => /lib/libz.so.1 (0x40470000)
	libungif.so.4 => /usr/lib/libungif.so.4 (0x4047e000)
	libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40486000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40494000)
	libncurses.so.5 => /lib/libncurses.so.5 (0x4054e000)
	libc.so.6 => /lib/libc.so.6 (0x4058d000)
	libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x4069d000)
	libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x406a5000)
	libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x406b3000)
	libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x406c3000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x406c8000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x406eb000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x40739000)

[-- Attachment #5: Type: text/plain, Size: 32 bytes --]




gnome-terminal ldd output:



[-- Attachment #6: gnome-terminal ldd output --]
[-- Type: text/plain, Size: 3252 bytes --]

/usr/bin/gnome-terminal:
	libvte.so.4 => /usr/lib/libvte.so.4 (0x4001d000)
	libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x400f2000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40102000)
	libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40150000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x40155000)
	libncurses.so.5 => /lib/libncurses.so.5 (0x40178000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401b7000)
	libglade-2.0.so.0 => /usr/lib/libglade-2.0.so.0 (0x40272000)
	libgnomeui-2.so.0 => /usr/lib/libgnomeui-2.so.0 (0x40286000)
	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40302000)
	libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40320000)
	libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40328000)
	libbonoboui-2.so.0 => /usr/lib/libbonoboui-2.so.0 (0x4033e000)
	libgnomecanvas-2.so.0 => /usr/lib/libgnomecanvas-2.so.0 (0x40399000)
	libgnome-2.so.0 => /usr/lib/libgnome-2.so.0 (0x403c1000)
	libgnutls.so.5 => /usr/lib/libgnutls.so.5 (0x403d3000)
	libtasn1.so.0 => /usr/lib/libtasn1.so.0 (0x40406000)
	libgcrypt.so.1 => /usr/lib/libgcrypt.so.1 (0x40414000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x4044d000)
	libesd.so.0 => /usr/lib/libesd.so.0 (0x40461000)
	libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x40468000)
	libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x40486000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x4049b000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x404ba000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x406c5000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x40727000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x4073d000)
	libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x4074e000)
	libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x4076c000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x40778000)
	libbonobo-2.so.0 => /usr/lib/libbonobo-2.so.0 (0x407a7000)
	libORBitCosNaming-2.so.0 => /usr/lib/libORBitCosNaming-2.so.0 (0x407f6000)
	libgnomevfs-2.so.0 => /usr/lib/libgnomevfs-2.so.0 (0x407fa000)
	libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0x4082e000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x40854000)
	libz.so.1 => /lib/libz.so.1 (0x4090c000)
	librt.so.1 => /lib/librt.so.1 (0x4091a000)
	libbonobo-activation.so.4 => /usr/lib/libbonobo-activation.so.4 (0x4092c000)
	libORBit-2.so.0 => /usr/lib/libORBit-2.so.0 (0x4093d000)
	libpopt.so.0 => /lib/libpopt.so.0 (0x40979000)
	libm.so.6 => /lib/libm.so.6 (0x40980000)
	liblinc.so.1 => /usr/lib/liblinc.so.1 (0x409a1000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x409a8000)
	libdl.so.2 => /lib/libdl.so.2 (0x409ad000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x409b0000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x409df000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x409e4000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40a33000)
	libstartup-notification-1.so.0 => /usr/lib/libstartup-notification-1.so.0 (0x40a96000)
	libc.so.6 => /lib/libc.so.6 (0x40a9f000)
	libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40baf000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x40bbc000)
	libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40bde000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40be7000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

[-- Attachment #7: Type: text/plain, Size: 48 bytes --]




PNG file mentioned in above error message:



[-- Attachment #8: Theme PNG file that emacs GTK can't use --]
[-- Type: image/png, Size: 609 bytes --]

[-- Attachment #9: Type: text/plain, Size: 55 bytes --]




-Miles
-- 
"1971 pickup truck; will trade for guns"

[-- Attachment #10: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GTK emacs can't load PNG files for themes
  2003-01-22  2:13 GTK emacs can't load PNG files for themes Miles Bader
@ 2003-01-22 14:23 ` Raja R Harinath
  0 siblings, 0 replies; 2+ messages in thread
From: Raja R Harinath @ 2003-01-22 14:23 UTC (permalink / raw)


Hi,

Miles Bader <miles@lsi.nec.co.jp> writes:

> When I configure CVS emacs to use GTK, it doesn't display scrollbars or
> menus correctly:  menu text and background get displayed, but the
> scrollbar thumb and menu highlight box are not displayed.
>
> The reason seems to be that I use a pixmap GTK theme, and it can't load
> the theme's various PNG image files for some reason.  Here's the first
> few stderr messages when I start `LANG=C emacs-gtk -q >& /tmp/,emacs-errs':
>
>    ** (emacs-gtk:17705): WARNING **: Pixbuf theme: Cannot load pixmap file /home/soft1/miles/.themes/MooMarble/gtk-2.0/brown_bg1.png: Failed to load image '/home/soft1/miles/.themes/MooMarble/gtk-2.0/brown_bg1.png': Fatal error in PNG image file: Incompatible libpng version in application and library

This is the problem.

[snip]
> I do note, however, that other GTK apps don't seem to use libpng,
> whereas emacs does, so perhaps there's a conflict there.

You'll want to check the PNG library used by emacs and by GTK+
match.  The PNG loader for GTK+ is 

  /usr/lib/gtk-2.0/2.2.0/loaders/libpixbufloader-png.so

on my machine.  GTK+ doesn't dynamically link against libpng, but
dynloads a module that does.  No wonder it wasn't caught by the
linker :-(

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-22 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-22  2:13 GTK emacs can't load PNG files for themes Miles Bader
2003-01-22 14:23 ` Raja R Harinath

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.