I make my interface with glade. Works great. I write a tiny little main function which calls gtkbuilder and renders everything in the glade file.
Gtk::Main kit(num, opts);
// Load the GtkBuilder file and instantiate its widgets:
Glib::RefPtr<Gtk::Builder> builder = Gtk::Builder::create_from_file("dsg.glade", "mainwindow");
Works even better. Then I get my widget
Gtk::Button *sf = 0;
builder->get_widget("button", sf);
Now what? Every example I've found to connect a signal handler is not built by gtkbuilder. If you instantiate your own class to represent/handle/render a button it's easy to connect a signal handler to it, but I'm using gtkbuilder and I don't see how to write a function that I can then attach to my widget, since I wasn't the one creating the button object, gtkbuilder was.
Do I make a subclass of gtkbutton write my function then point to that? But my class isn't being instantiated by gtkbuilder.
I just don't get it. Help?