I want to compile code showed in gtk-demos (which is actually a standalone application). I want to learn gtk using c/c++, but online examples are sparse or bad.
problem is that they dont have main functions, but they do have:
So how do i use those do_* functions in main function and compile them as a standalone file?
Another unrelated question is that i’m planning to use opengl in my gtk application, but all examples i saw had some padding / margin applied to GLArea which i had no idea how to remove.
take a look at this image to see what i mean, opengl area has like 5 pixel padding around it on all sides, and i haven’t able to find any code that adds that padding.
is it hardcoded in gtk?