Re: PangoRectangle

From: Date: Mon, 05 Feb 2007 20:49:34 +0000
Subject: Re: PangoRectangle
References: 1 2 3  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3692@lists.php.net to get a copy of this message
Yeah, that's because GtKAllocation is typedef'ed to GdkRectangle, but PangoRectangle is not. One solution would be to extend GdkRectanglePtr_Arg class to store the type name as a class var and use it instead of the explicit 'GdkRectangle'. -Andrei On Feb 5, 2007, at 12:37 PM, Christian Weiske wrote:
Andrei,
What kind of warnings does it give when you try to register it as a GdkRectangle?
ext/gtk+/gen_pango.c: In function 'zif_PangoLayout_index_to_pos': ext/gtk+/gen_pango.c:1224: warning: passing argument 3 of 'pango_layout_index_to_pos' from incompatible pointer type code: GdkRectangle pos = { 0, 0, 0, 0 }; .. phpg_rectangle_from_zval(php_pos, &pos TSRMLS_CC) .. pango_layout_index_to_pos(PANGO_LAYOUT(PHPG_GOBJECT(this_ptr)), (int)index, &pos); --Regards/Mit freundlichen Grüßen Christian Weiske


« previous php.gtk.dev (#3692) next »