4 // Disable the 'const' function attribute of the get_type() functions.
5 // GCC would optimize them out because we don't use the return value.
7 #define G_GNUC_CONST /* empty */
9 #include <libglademm/wrap_init.h>
10 #include <glibmm/error.h>
11 #include <glibmm/object.h>
13 // #include the widget headers so that we can call the get_type() static methods:
20 //Declarations of the *_get_type() functions:
22 GType glade_xml_get_type(void);
24 //Declarations of the *_error_quark() functions:
29 //Declarations of the *_Class::wrap_new() methods, instead of including all the private headers:
31 namespace Gnome { namespace Glade { class Xml_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; } }
33 namespace Gnome { namespace Glade {
37 // Register Error domains:
39 // Map gtypes to gtkmm wrapper-creation functions:
40 Glib::wrap_register(glade_xml_get_type(), &Gnome::Glade::Xml_Class::wrap_new);
42 // Register the gtkmm gtypes:
43 Gnome::Glade::Xml::get_type();