X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fgtkmm2ext%2Fpopup.cc;h=85a9d537c365859aeb185eb2c61b8182b5a8acf0;hb=944c32346b3c6bb87fccb22f159bdd9297bae50d;hp=2d586d0317dce697f429484fa23a55794604fc98;hpb=bc89fe0147c04b67141936d109c00dfd4d69cc4b;p=ardour.git diff --git a/libs/gtkmm2ext/popup.cc b/libs/gtkmm2ext/popup.cc index 2d586d0317..85a9d537c3 100644 --- a/libs/gtkmm2ext/popup.cc +++ b/libs/gtkmm2ext/popup.cc @@ -80,16 +80,16 @@ PopUp::remove () if (delete_on_hide) { std::cerr << "deleting prompter\n"; - gtk_idle_add (idle_delete, this); + g_idle_add (idle_delete, this); } } - #define ENSURE_GUI_THREAD(slot) \ if (!Gtkmm2ext::UI::instance()->caller_is_ui_thread()) {\ - Gtkmm2ext::UI::instance()->call_slot ((slot));\ + Gtkmm2ext::UI::instance()->call_slot (MISSING_INVALIDATOR, (slot)); \ return;\ } + void PopUp::touch () { @@ -111,7 +111,7 @@ PopUp::touch () } gint -PopUp::button_click (GdkEventButton *ev) +PopUp::button_click (GdkEventButton* /*ev*/) { remove (); return TRUE; @@ -131,7 +131,7 @@ PopUp::set_name (string name) } bool -PopUp::on_delete_event (GdkEventAny* ev) +PopUp::on_delete_event (GdkEventAny* /*ev*/) { hide();