Removed unused function gui2::event::tdistributor::show_help_popup.

This commit is contained in:
Guillaume Melquiond 2010-11-07 15:52:58 +00:00
parent 9b20ae5648
commit f5dfd9afb7
2 changed files with 0 additions and 38 deletions

View File

@ -701,32 +701,6 @@ void tdistributor::remove_tooltip()
do_remove_tooltip();
}
void tdistributor::show_help_popup(const t_string& message, const unsigned timeout)
{
DBG_GUI_E << "Event: show help popup.\n";
if(help_popup_) {
DBG_GUI_E << "Help is already there, bailing out.\n";
return;
}
if(tooltip_) {
remove_tooltip();
}
// Kill hover events FIXME not documented.
had_hover_ = true;
hover_pending_ = false;
help_popup_ = mouse_focus_;
do_show_help_popup(tpoint(mouse_x_, mouse_y_), message);
if(timeout) {
SDL_AddTimer(timeout, popup_callback, 0);
}
}
void tdistributor::remove_help_popup()
{
if(!help_popup_) {

View File

@ -284,18 +284,6 @@ public:
/** Removes the currently shown tooltip. */
void remove_tooltip();
/**
* Shows a help message.
*
* A help message is like a tooltip, but in general contains more info and
* the user needs to trigger it (most of the time with the F1 button).
*
* @param message The message to show.
* @param timeout The time the help message is shown, 0 means
* forever.
*/
void show_help_popup(const t_string& message, const unsigned timeout);
/** Removes the currently show tooltip. */
void remove_help_popup();