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:
GtkWidget* do_<insert_demo_name> (GtkWidget *do_widget)
for example demos/gtk-demo/tabs.c · main · GNOME / gtk · GitLab
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?
To anyone reading, thanks for attention