Draw signal in GTK3 GtkDrawingArea

Linux specific questions.
James Klutho
Posts: 13
Joined: Nov 11, 2009 23:44

Draw signal in GTK3 GtkDrawingArea

Postby James Klutho » Feb 16, 2018 23:37

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: 13
Joined: Nov 11, 2009 23:44

Re: Draw signal in GTK3 GtkDrawingArea

Postby James Klutho » Feb 17, 2018 16:53

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.

Return to “Linux”

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest