Re: undefined method GtkPrintContext::get_cairo_context
| From: | Alex | Date: | Tue, 30 Nov 2010 03:13:17 +0000 |
| Subject: | Re: undefined method GtkPrintContext::get_cairo_context | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-8531@lists.php.net to get a copy of this message | ||
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.
>
>