[cairo-compmgr] Re: problem with interfaces |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/cairo-compmgr Archives
]
- To: cairo-compmgr@xxxxxxxxxxxxxxxxxxx
- Subject: [cairo-compmgr] Re: problem with interfaces
- From: "Carlos Diógenes" <cerdiogenes@xxxxxxxxx>
- Date: Wed, 16 Jan 2008 16:29:43 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=iI3xbbGm6Y9OG9pZzgBmCSSpDjlxiW8YdW1/BLCg7Xk=; b=f3R3CsakT21EKiEod4n70tS5VWQboRLPjmb4aRASDuVz1cOMG4x7UNfTf249cwsd9icDoAay+H8P3sCUzapChykNkWZlA5FA0zvTwwSwqnsUws3OnPm3m8zIHylIcm8m4qu4Amd9mvsN+yNytutilN6HK9N4jcXDNuLxOcwFW2w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HKcLhu6Y/RGxhf+VAxk+SRboaL+IqgFJC5U+UacA5bWkamlxNLVTOaMftCQh0gdy5CLWYoBKFMHgvf9LiVQM6GZsSyEtMTnCv0ajA7WCz2vc0Ln/adA7ycdXgb0SgHaNO3Y3GdrxXMLr+E4UD31l4VPVHCzUhjB3pmNtW3aooMM=
Hmm,
I think I realize what is wrong. It's due the fact that the an GObject
representing the plugin is created for screen AND for windows, isn't
is?
Best regards,
Carlos.
2008/1/16, Carlos Diógenes <cerdiogenes@xxxxxxxxx>:
> 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.
>
---