Re: [PHP-GTK] undefined method GtkPrintContext::get_cairo_context
[email protected] (Alex) Mon, 29 Nov 2010 21:13:17 -0600
| Newsgroups | php.gtk.general |
|---|---|
| Message-ID | <[email protected]> |
thanks, the function is available now but I get an assertion failure,
could be my issue tho. Works ok in C.
Assertion failed: CAIRO_REFERENCE_COUNT_HAS_REFERENCE
(&cr->ref_count), file cairo.c, line 435
cairo.c from cairo-1.10.0\src:
C:\cairo-1.10.0\src>sed -n '425,445p' cairo.c
* Decreases the reference count on @cr by one. If the result
* is zero, then @cr and all associated resources are freed.
* See cairo_reference().
**/
void
cairo_destroy (cairo_t *cr)
{
if (cr == NULL || CAIRO_REFERENCE_COUNT_IS_INVALID (&cr->ref_count))
return;
assert (CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&cr->ref_count));
if (! _cairo_reference_count_dec_and_test (&cr->ref_count))
return;
while (cr->gstate != &cr->gstate_tail[0]) {
if (_cairo_gstate_restore (&cr->gstate, &cr->gstate_freelist))
break;
}
_cairo_gstate_fini (cr->gstate);
On Mon, Nov 29, 2010 at 1:35 PM, Mark Gregory Skilbeck
<[email protected]> wrote:
> On Sun, Nov 28, 2010 at 10:11:46PM -0600, Alex wrote:
>> hi, on win32 should I be able to invoke GtkPrintContext::get_cairo_context()
>> Call to undefined method GtkPrintContext::get_cairo_context()
>>
>> this is to run the printing_example.php script
>>
>> I saw in the log when my types are generated in /php-gtk/ext/gtk+ I get this
>> error:
>>
>> unknown type 'cairo_t*'
>>
>> thx
>
> Hi, Alex.
>
> For some reason the overrides were missing for those methods. I've
> added them in and committed them to SVN. Can you compile from
> trunk and see if this fixes the issue?
>
> Mark.
>
> P.S. This would be more suited to a bug report.
>
>