Re: missing prototype for pango_context_new?
- From: Bjarne Steinsbø <bosteins broadpark no>
- To: Ross McFarland <rwmcfa1 neces com>
- Cc: "Marc A. Lehmann" <pcg goof com>, gtk-perl-list gnome org
- Subject: Re: missing prototype for pango_context_new?
- Date: Mon, 10 Nov 2003 23:15:29 +0100
Ross McFarland wrote:
pcg goof com ( Marc) (A.) (Lehmann ) said:
While compiling Gtk2, I get this warning:
PangoContext.c: In function `XS_Gtk2__Pango__Context_new':
PangoContext.c:44: warning: assignment makes pointer from integer without a
Might be a missing include or something else. I have no idea and don't
really understand why the prototype for pango_context_new is not there
while all the other prototypes seem to be there.
i can't repeat it.
try greping the pango include dir for pango_context_new. if that works see if
the file it's in (should be pango-context.h) is included in pango.h.
I get the same warning when compiling the new 2.3.x stuff.
I looked into it, and found the following in the documentation in
pango-1.3.0 about pango_context_new:
This function is only useful when implementing a new backend for Pango,
something applications won't do. You should use the context creation
function for the backend you are using, for example,
pango_win32_get_context() <cid:email@example.com> or,
If you are using Pango as part of a higher-level system, that system may
have it's own ways of create a PangoContext
<cid:firstname.lastname@example.org>. For instance, the GTK+
toolkit has, among others, gdk_pango_context_get_for_screen()
] [Thread Prev