From owner-freebsd-gnome@FreeBSD.ORG Sat Apr 19 15:23:40 2003 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDF3137B401 for ; Sat, 19 Apr 2003 15:23:40 -0700 (PDT) Received: from mail7-sh.home.nl (mail7.home.nl [213.51.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFC5543FCB for ; Sat, 19 Apr 2003 15:23:39 -0700 (PDT) (envelope-from Bram@moolenaar.net) Received: from moolenaar.net ([212.120.77.84]) by mail7-sh.home.nl (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with ESMTP id <20030419222338.VUBF25064.mail7-sh.home.nl@moolenaar.net>; Sun, 20 Apr 2003 00:23:38 +0200 Received: from masaka.moolenaar.net (localhost.moolenaar.net [127.0.0.1]) by moolenaar.net (8.11.6/8.11.1) with ESMTP id h3JMNki47809; Sun, 20 Apr 2003 00:23:46 +0200 (CEST) (envelope-from Bram@moolenaar.net) Message-Id: <200304192223.h3JMNki47809@moolenaar.net> To: Joe Marcus Clarke In-Reply-To: <1050790531.13770.48.camel@shumai.marcuscom.com> From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Sun, 20 Apr 2003 00:23:46 +0200 Sender: Bram@moolenaar.net cc: FreeBSD GNOME Users cc: Daniel Elstner Subject: Re: Error installing port X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2003 22:23:41 -0000 Joe - > > gui_beval.c: In function `drawBalloon': > > gui_beval.c:951: `PANGO_WRAP_WORD_CHAR' undeclared (first use in this fun= > > The strange thing is that previously (with GTK 2.0.0) it did work. > > Can you send me this source? Most things today are being written for > pango-1.2.x. PANGO_WRAP_WORD_CHAR is defined in that version. Looks > like this source assumes pango-1.1.x or higher. It may be made to use > the older stuff. This is in the GTK 2 patch from Daniel Elstner: http://regexxer.sourceforge.net/vim/vim-gtk2-20030404.patch.gz > > Hmm, when I change PANGO_WRAP_WORD_CHAR into PANGO_WRAP_WORD it works! > > The difference between PANGO_WRAP_WORD_CHAR and PANGO_WRAP_WORD is that > the former wraps words at word boundaries, but falls back to wrapping at > character boundaries if there is not enough space for a word. The > latter doesn't have the fallback. This substitution might be okay, but > it should be conditionalized so that newer pango users can take > advantage of the newer functionality. I suppose a solution would be: # ifdef PANGO_WRAP_WORD_CHAR pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR); # else pango_layout_set_wrap(layout, PANGO_WRAP_WORD); # endif The fallback may be important for very long words. Anyway, this problem shows that we can anticipate various problems with various versions of GTK and Pango... I'll bring out an alpha release soon, so that these things can be tested. - Bram -- How To Keep A Healthy Level Of Insanity: 15. Five days in advance, tell your friends you can't attend their party because you're not in the mood. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///