summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-11 12:42:05 -0400
committerDavid Robillard <d@drobilla.net>2021-05-11 13:36:32 -0400
commit0f1e403b0cab6d364abfb894ed209082429a74dd (patch)
tree7f96a265cdb95b40f64010b90e4573d88440f54f /src
parent655b20bae493a517bd2163a1af379fd57abd3457 (diff)
downloadpatchage-0f1e403b0cab6d364abfb894ed209082429a74dd.tar.gz
patchage-0f1e403b0cab6d364abfb894ed209082429a74dd.tar.bz2
patchage-0f1e403b0cab6d364abfb894ed209082429a74dd.zip
Register idle callback after all other setup
Diffstat (limited to 'src')
-rw-r--r--src/Patchage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 7387b36..a4bb960 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -346,10 +346,6 @@ Patchage::Patchage(Options options)
_canvas->widget().grab_focus();
- // Idle callback, check if we need to refresh
- Glib::signal_timeout().connect(sigc::mem_fun(this, &Patchage::idle_callback),
- 100);
-
#ifdef PATCHAGE_GTK_OSX
// Set up Mac menu bar
GtkosxApplication* osxapp = static_cast<GtkosxApplication*>(
@@ -368,6 +364,10 @@ Patchage::Patchage(Options options)
osxapp, "NSApplicationWillTerminate", G_CALLBACK(terminate_cb), this);
gtkosx_application_ready(osxapp);
#endif
+
+ // Set up an idle callback to process events and update the GUI if necessary
+ Glib::signal_timeout().connect(sigc::mem_fun(this, &Patchage::idle_callback),
+ 100);
}
Patchage::~Patchage()