How to draw in a subclassed DrawingArea widget?

Viewed 689

I want to implement custom widgets by subclassing DrawingArea Widget, for this I need to draw using cairo. It seems like in gtk3 there is a new signal called 'draw' introduced. How do I draw inside the widget? Should the map and realize signals also be overrided?

A simple example code would be very helpful. Thanks.

1 Answers
Related