I'm starting to do Gtk+ programming. One thing I find when doing a project is that my main() method (I'm using C++) is getting really bogged down--not necessarily with running time, but with code. Would it be good practice to set up the code in different functions like this:
// Create a menubar and return a pointer.
//Create a text field and return a pointer
GtkWidget *menubar = addMenubar();
GtkWidget *textField = addTextfield();
//...Do some other stuff...
// Add all the elements to the window and show.
Or would it not even be worth it?