]> git.draconx.ca Git - aspectbin.git/commitdiff
Add support for libglade when directly linking.
authorNick Bowler <nbowler@draconx.ca>
Mon, 23 Mar 2009 02:03:34 +0000 (22:03 -0400)
committerNick Bowler <nbowler@draconx.ca>
Mon, 23 Mar 2009 02:03:34 +0000 (22:03 -0400)
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.

aspectbin-libglade.c
aspectbin.h

index 726c6e6be40e85bb3f9dee22a39378e0f4dd0746..ffe0bcac28e1d809c3c19717b9f63cc2fbed73b5 100644 (file)
 #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();
+}
index 7137e962669b8fdea5c3a49e4dd32facb337c125..d02ea12634debe071a0398be780121f9b82b7b82 100644 (file)
@@ -55,4 +55,7 @@ void aspect_bin_set_side(AspectBin *, GtkWidget *);
 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