This is done by adding the function aspect_bin_register_widgets, which
should be called by a program which intends to directly link with the
library but still use libglade.
#include <glade/glade-build.h>
#include "aspectbin.h"
-void glade_module_register_widgets(void)
+void aspect_bin_register_widgets(void)
{
glade_register_widget(ASPECT_BIN_TYPE, glade_standard_build_widget,
glade_standard_build_children,
NULL);
glade_provide("aspectbin");
}
+
+void glade_module_register_widgets(void)
+{
+ aspect_bin_register_widgets();
+}
GtkWidget *aspect_bin_get_body(AspectBin *abin);
GtkWidget *aspect_bin_get_side(AspectBin *abin);
+/* Registers widgets with libglade - primarily for static linking. */
+void aspect_bin_register_widgets(void);
+
#endif