best way to display a "window" below of StatusIcon

2013-07-01 Thread Victor Aurélio Santos
What's the best way to display a "window" below of a StatusIcon like Mixers do ? I'm writing a Mixer using in GTK-3 and need to display some Scales and Labels bellow (or above depending where Notification are resides) StatusIcon, what's best way do this ? I've searched but found nothing... An exa

Re: Mouse events on a Cairo Context

2013-07-01 Thread Borja Mon Serrano
Hi Colomban This is probably the simplest solution, it's meant for this kind of things. > > 4 - Handle the events yourself: listen to the > button-press-event/button-release-event of your DrawingArea and do the > math to know whether the click is on your circle or not. Maybe Cairo > has this ki

best way to display a "window" below of StatusIcon

2013-07-01 Thread Victor Aurélio Santos
What's the best way to display a "window" below of a StatusIcon like Mixers do ? I'm writing a Mixer using in GTK-3 and need to display some Scales and Labels bellow (or above depending where Notification are resides) StatusIcon, what's best way do this ? I've searched but found nothing... An exa

Re: Mouse events on a Cairo Context

2013-07-01 Thread Stefan Salewski
On Mon, 2013-07-01 at 17:42 +0200, Borja Mon Serrano wrote: > > The problem with (4) is drag&drop. I think it could be very difficult to > deal with it, so I'm going to try the third solution, with goocanvasmm. Do > you know any example of use of goocanvasmm? > Yes, drag&drop may be not very ea

Re: Mouse events on a Cairo Context

2013-07-01 Thread Dov Grobgeld
There is another solution that I have used extensively, which is to draw the cairo commands twice. Once for the actual drawing, and once again in an offline image (called label image), with the following differences: 1. Use solid colors corresponding to "labels" of the different graphical co

How to call WebKit.DOMDocument.evaluate function in python

2013-07-01 Thread Niranjan Rao
Greetings, I realize that this question is specific to python and webkit and not a general Gtk question. I have tried many other avenues including stackoverflow question and sending mails to various other lists. So far no luck. Since there are many Gtk experts here, I am hoping someone might be ab