diff options
-rw-r--r-- | src/Patchage.cpp | 8 |
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() |