Search code examples
cgtkbuilder

GTK how to use gtk_builder_add_from_string()


I am new to Gtk and I am also using Glade to design a GUI.

What is the necessary steps to show a GUI designed in glade by using gtk_builder_add_from_string() ?

So far I loaded a .glade file into memory , ran g_type_init() and I got myself a gtk_builder_new() struct that I pass to gtk_builder_add_from_string().

What do I need to do next to show the GUI and "talk" with the widgets?

(sorry for a possibly stupid question but me and google are not exactly friends today)


Solution

  • I always thought this was a very good tutorial: https://web.archive.org/web/20151230154736/http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html