[cairo-compmgr] problem with interfaces |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/cairo-compmgr Archives
]
- To: cairo-compmgr@xxxxxxxxxxxxxxxxxxx
- Subject: [cairo-compmgr] problem with interfaces
- From: "Carlos Diógenes" <cerdiogenes@xxxxxxxxx>
- Date: Wed, 16 Jan 2008 15:34:42 -0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=Iq57yTuB35YBXKKE91gnI93ONleyQTB0T5/Ac0q9etw=; b=rqETkOkF0IdeEsa+JcsjfrIBR7NUhvSlCIUnaG8bLE2Xe0t0UvJrWfcnLkyjTJ5L5jsAl7YMMVmhKxOS9rfK1u7Can9ljkUZvvhHxGx4kpXEnaF83v0bZRFFA0bVzC+M2djSmDqhqlRpDqx5QgAXDHXJDrT/wTOfeYWpZrhHxVQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LDhoW/vXlHSVNba+2cNzz25j6Gv92eWGnZHYe1C6MQm3nDdr71zJZKws1Y90fazFG5ro+4OB1h0JIilkMuYy4QLcd54g0Jfgu22sSmEuKee47+26t7erHyr94wHVxy4vw9lJL4f+XTBGY1jLfkUY9eLSdxbTwDFkITC5Wx+qtdk=
Hi,
I'm creating a magnifier plugin that implements the screen and window
plugin interfaces.
When the ccm_magnifier_screen_paint is called I create a new cairo context.
When the ccm_magnifier_screen_paint is called I try to read this cairo
context, but I'm getting a NULL value.
static void
ccm_magnifier_screen_paint(CCMScreenPlugin* plugin, CCMScreen* self)
{
CCMMagnifier* mag = CCM_MAGNIFIER(plugin);
static gboolean
ccm_magnifier_window_paint(CCMWindowPlugin* plugin, CCMWindow* window,
cairo_t* context, cairo_surface_t* surface)
{
CCMMagnifier* self = CCM_MAGNIFIER(plugin);
These lines just show how I cast the plugins to CCMMagnifier. I think
that the problem is in this place, but I don't know what is wrong. I
already look around for it, but doesn't find anything helpful.
Thanks,
Carlos.
---