Draw signal in GTK3 GtkDrawingArea

Linux specific questions.
Post Reply
James Klutho
Posts: 14
Joined: Nov 11, 2009 23:44

Draw signal in GTK3 GtkDrawingArea

Post by James Klutho »

I am using GTK3 and trying to use the GtkDrawingArea widget. When I try and connect the "draw" signal to the widget, the compiler says that the "draw" signal is not recognized by the class. Something is wrong here since I am trying to run an example out of the GTK3 documentation. I have tried to locate the problem in the headers but have not found the location yet. Anyone know where I should look to find the problem? I suspect a misspelling or something in the header file.

Thanks
Jim
James Klutho
Posts: 14
Joined: Nov 11, 2009 23:44

Re: Draw signal in GTK3 GtkDrawingArea

Post by James Klutho »

I think I figured out the problem. It appears that the Freebasic GTK3 bindings are a hodge podge of GTK3 and GTK2. The GtkDrawingArea is still basically defined as GTK2. In GTK2, the "expose_event" signal will handle redrawing the contents of the widget whereas this changed in GTK3 to "draw". I think I will stick to GTK2 in my Freebasic GTK endeavors.
Post Reply