X-Git-Url: http://git.draconx.ca/gitweb/aspectbin.git/blobdiff_plain/c82458a957f13adce96cf0c8615d8d5f5696b509..bbda4fee7164bffd88a627c8ed4c60c22f0fad5c:/aspectbin-glade.c diff --git a/aspectbin-glade.c b/aspectbin-glade.c index 7a52064..7743279 100644 --- a/aspectbin-glade.c +++ b/aspectbin-glade.c @@ -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()); } }