%{HH_TEMPLATE} // you might replace // class foo : public foo_glade { ... }; // by // typedef foo_glade foo; // if you didn't make any modifications to the widget #ifndef _MAIN_WINDOW_H # include "main_window_glade.h" # define _MAIN_WINDOW_H class main_window : public main_window_glade { protected: virtual gint quit(GdkEventAny *ev); }; #endif