Re: advice drawing without window decoration



On Fri, 2009-12-04 at 19:41 +0000, Richard Henwood wrote: 
> Hi All,
> 
> I want to develop a 'desktop companion' in a similar vein to:
> http://www.tversoft.com/company/DeskSoft/DesktopPlant.html
> It will 'grow' according to the output of my auditing code.
> 
> Can anyone advise how I can draw to the gnome window system without window decoration (i'm currently using gtk.Window.set_decorated). I'm not sure about my window not appearing on the panel...

Setting an RGBA colormap on the window is required and set the colormap
on construct and screen change, then add and use gtk.DrawingArea for
drawing, then drawing to the DrawingArea will have a transparent
background.... Take a look at the pydock hack I did here;
http://www.qdh.org.uk/wordpress/?p=242

what you're interested in basically is the window and the
gtk.DrawingArea derived classes... Sorry its in python but you should be
able to get the idea. 

Hope this helps,
K,

> And I suspect that there is a 'right' way to do this - maybe along the lines of how my update manager tastefully alerts me to updates?
> 
> Any ideas much appreciated,
> richard
> 
> 
>       
> 
> _______________________________________________
> desktop-devel-list mailing list
> desktop-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/desktop-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]