From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Raja R Harinath Newsgroups: gmane.emacs.devel Subject: Re: GTK emacs can't load PNG files for themes Date: Wed, 22 Jan 2003 08:23:58 -0600 Organization: Dept. of Computer Science, Univ. of Minnesota Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043245643 31004 80.91.224.249 (22 Jan 2003 14:27:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 22 Jan 2003 14:27:23 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18bLqc-00083u-00 for ; Wed, 22 Jan 2003 15:27:22 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18bLsQ-00024E-00 for ; Wed, 22 Jan 2003 15:29:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bLrp-00023f-02 for emacs-devel@quimby.gnus.org; Wed, 22 Jan 2003 09:28:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18bLoe-0000oJ-00 for emacs-devel@gnu.org; Wed, 22 Jan 2003 09:25:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18bLnd-0000WA-00 for emacs-devel@gnu.org; Wed, 22 Jan 2003 09:24:18 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bLnO-0000Sb-00 for emacs-devel@gnu.org; Wed, 22 Jan 2003 09:24:02 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18bLls-0007jW-00 for ; Wed, 22 Jan 2003 15:22:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18bLlq-0007jF-00 for ; Wed, 22 Jan 2003 15:22:26 +0100 Original-Lines: 32 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:T5DWFOC/KTK8ptSQAJYwQKISvrE= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10977 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10977 Hi, Miles Bader 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