[prev in list] [next in list] [prev in thread] [next in thread]
List: php-gtk-general
Subject: Re: [PHP-GTK] undefined method GtkPrintContext::get_cairo_context
From: Alex <alextheblade () gmail ! com>
Date: 2010-11-30 3:13:17
Message-ID: AANLkTi=aj+j7LpDDQwH7HDE2f5Zs2kPHfjLmuXuMm4v6 () mail ! gmail ! com
[Download RAW message or body]
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
<markskilbeck@googlemail.com> 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.
>
>
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic