summaryrefslogtreecommitdiff
path: root/libs/pbd/base_ui.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2013-07-17 08:08:46 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2013-07-17 08:08:46 +0100
commit350ed31655b00f3043e5d723606cdd50099fa91b (patch)
tree88190e6aa65a8e5668fe84c98dc158a135c4af3a /libs/pbd/base_ui.cc
parent105652ad09fa4898d2fadd791802406c3f1afbec (diff)
Remaining changes needed for building libpdb on Windows (except for adding the extra JE source modules)
Diffstat (limited to 'libs/pbd/base_ui.cc')
-rw-r--r--libs/pbd/base_ui.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/pbd/base_ui.cc b/libs/pbd/base_ui.cc
index 4bd3d23514..3a4257ebdd 100644
--- a/libs/pbd/base_ui.cc
+++ b/libs/pbd/base_ui.cc
@@ -51,13 +51,13 @@ BaseUI::BaseUI (const string& str)
: m_context(MainContext::get_default())
, run_loop_thread (0)
, _name (str)
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
, request_channel (true)
#endif
{
base_ui_instance = this;
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
request_channel.ios()->connect (sigc::mem_fun (*this, &BaseUI::request_handler));
#endif
@@ -124,7 +124,7 @@ BaseUI::quit ()
}
}
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
gboolean
BaseUI::_request_handler (gpointer data)
{
@@ -172,7 +172,7 @@ void
BaseUI::signal_new_request ()
{
DEBUG_TRACE (DEBUG::EventLoop, "BaseUI::signal_new_request\n");
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
// handled in timeout, how to signal...?
#else
request_channel.wakeup ();
@@ -186,7 +186,7 @@ void
BaseUI::attach_request_source ()
{
DEBUG_TRACE (DEBUG::EventLoop, "BaseUI::attach_request_source\n");
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
GSource* request_source = g_timeout_source_new(200);
g_source_set_callback (request_source, &BaseUI::_request_handler, this, NULL);
g_source_attach (request_source, m_context->gobj());