drawing above gtkentry using cairo

Posted by Durgesh on Stack Overflow See other posts from Stack Overflow or by Durgesh
Published on 2010-05-23T11:05:15Z Indexed on 2010/05/23 11:10 UTC
Read the original article Hit count: 385

Filed under:
|
|
|
|

Hi Experts,

I want to use cairo to enhance gtkentry look. For this, I have connected a callback to 'expose-event'. In callback, I call gtkentry's original expose-event handler. After that, I create cairo context and draw some lines and destroy the cairo. I return 'TRUE' as return value of callback function so that expose-event does not propagate.

Now my problem is, I am drawing line from (0,0) to (100,100). But line appears only over the border areas of the gtkentry. The place where text is, it does not appear.

Please help.

Kind Regards -Durgesh O Mishra

© Stack Overflow or respective owner

Related posts about c

    Related posts about gtk