Error installing port

Bram Moolenaar Bram at
Sat Apr 19 15:23:41 PDT 2003

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:

> > 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:

	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 at --   \\\
///          Creator of Vim - Vi IMproved --          \\\
\\\              Project leader for A-A-P --        ///
 \\\     Help AIDS victims, buy at Amazon -- ///

More information about the freebsd-gnome mailing list