summaryrefslogtreecommitdiffstats
path: root/ganv
diff options
context:
space:
mode:
Diffstat (limited to 'ganv')
-rw-r--r--ganv/Module.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ganv/Module.hpp b/ganv/Module.hpp
index 9b294c9..4943295 100644
--- a/ganv/Module.hpp
+++ b/ganv/Module.hpp
@@ -109,7 +109,11 @@ public:
}
void embed(Gtk::Widget* widget) {
- ganv_module_embed(gobj(), widget->gobj());
+ if (widget) {
+ ganv_module_embed(gobj(), widget->gobj());
+ } else {
+ ganv_module_embed(gobj(), NULL);
+ }
}
void for_each_port(GanvPortFunction f, void* data) {