]> git.draconx.ca Git - aspectbin.git/blobdiff - aspectbin-glade.c
Add functions to get the body/side children.
[aspectbin.git] / aspectbin-glade.c
index 7a52064d2a705daf6375c5c40954e3870b60714e..774327944403b187d8c7893354c3031095e1daf3 100644 (file)
@@ -11,7 +11,9 @@ void aspect_bin_post_create(GladeWidgetAdaptor *adaptor,
        abin = ASPECT_BIN(object);
 
        if (reason == GLADE_CREATE_USER) {
-               gtk_container_add(GTK_CONTAINER(abin), glade_placeholder_new());
-               gtk_container_add(GTK_CONTAINER(abin), glade_placeholder_new());
+               if (!aspect_bin_get_body(abin))
+                       aspect_bin_set_body(abin, glade_placeholder_new(), 1);
+               if (!aspect_bin_get_side(abin))
+                       aspect_bin_set_side(abin, glade_placeholder_new());
        }
 }