X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fgtkmm2ext%2Fpopup.cc;h=898211c986489d2e0a10d16b258fb7a99252041e;hb=569167a603ef812a234d3c02f6a94976571a70ea;hp=85a9d537c365859aeb185eb2c61b8182b5a8acf0;hpb=4861eca97483128e5febb575b94688581abb0154;p=ardour.git diff --git a/libs/gtkmm2ext/popup.cc b/libs/gtkmm2ext/popup.cc index 85a9d537c3..898211c986 100644 --- a/libs/gtkmm2ext/popup.cc +++ b/libs/gtkmm2ext/popup.cc @@ -1,6 +1,6 @@ /* Copyright (C) 1998-99 Paul Barton-Davis - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or @@ -101,10 +101,10 @@ PopUp::touch () set_size_request_to_display_given_text (label, my_text.c_str(), 25, 10); label.set_text (my_text); show_all (); - + if (popdown_time != 0) { - timeout = g_timeout_add (popdown_time, - remove_prompt_timeout, + timeout = g_timeout_add (popdown_time, + remove_prompt_timeout, this); } } @@ -137,7 +137,7 @@ PopUp::on_delete_event (GdkEventAny* /*ev*/) if (popdown_time != 0 && timeout != -1) { g_source_remove (timeout); - } + } if (delete_on_hide) { std::cerr << "deleting prompter\n" << endl;