aboutsummaryrefslogtreecommitdiff
path: root/bin/synthpod_bin.h
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-01 13:00:25 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-01 13:00:25 +0200
commit6c5011f91855061f363b94f67889739f08b939de (patch)
tree124489615d66eb18314647598e00af08f3d99345 /bin/synthpod_bin.h
parentc0157a73c9744816cb9f1be1e0aa4bd76e973f9b (diff)
downloadsynthpod-6c5011f91855061f363b94f67889739f08b939de.tar.xz
prevent double win_resize_object_add.
Diffstat (limited to 'bin/synthpod_bin.h')
-rw-r--r--bin/synthpod_bin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/synthpod_bin.h b/bin/synthpod_bin.h
index 1e8f44e8..1ea7cc95 100644
--- a/bin/synthpod_bin.h
+++ b/bin/synthpod_bin.h
@@ -566,6 +566,9 @@ bin_run(bin_t *bin, char **argv, const synthpod_nsm_driver_t *nsm_driver)
// ui init
bin->ui = sp_ui_new(bin->win, NULL, &bin->ui_driver, bin, 1);
+ if(bin->has_gui)
+ elm_win_resize_object_add(bin->win, sp_ui_widget_get(bin->ui));
+
// NSM init
const char *exe = strrchr(argv[0], '/');
exe = exe ? exe + 1 : argv[0]; // we only want the program name without path