mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Hide UI request mechanism from inheriting classes
This commit is contained in:
parent
5d20b3e24e
commit
7626cd68ac
4 changed files with 21 additions and 6 deletions
|
|
@ -42,9 +42,9 @@ BaseUI::RequestType BaseUI::CallSlot = BaseUI::new_request_type();
|
|||
BaseUI::RequestType BaseUI::Quit = BaseUI::new_request_type();
|
||||
|
||||
BaseUI::BaseUI (const string& str)
|
||||
: request_channel (true)
|
||||
, run_loop_thread (0)
|
||||
: run_loop_thread (0)
|
||||
, _name (str)
|
||||
, request_channel (true)
|
||||
{
|
||||
base_ui_instance = this;
|
||||
|
||||
|
|
@ -138,4 +138,15 @@ BaseUI::request_handler (Glib::IOCondition ioc)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BaseUI::signal_new_request ()
|
||||
{
|
||||
request_channel.wakeup ();
|
||||
}
|
||||
|
||||
void
|
||||
BaseUI::attach_request_source (Glib::RefPtr<Glib::MainContext> context)
|
||||
{
|
||||
request_channel.ios()->attach (context);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue