5151#include " subs_edit_ctrl.h"
5252#include " text_selection_controller.h"
5353#include " timeedit_ctrl.h"
54- #include " tooltip_manager.h"
5554#include " validators.h"
5655
5756#include < libaegisub/character_count.h>
@@ -282,7 +281,7 @@ TimeEdit *SubsEditBox::MakeTimeCtrl(wxString const& tooltip, TimeField field) {
282281void SubsEditBox::MakeButton (const char *cmd_name) {
283282 cmd::Command *command = cmd::get (cmd_name);
284283 wxBitmapButton *btn = new wxBitmapButton (this , -1 , command->Icon ());
285- ToolTipManager::Bind (btn, command->StrHelp (), " Subtitle Edit Box" , cmd_name);
284+ tool_tip_bindings. emplace_back (btn, command->StrHelp (), " Subtitle Edit Box" , cmd_name);
286285
287286 middle_right_sizer->Add (btn, wxSizerFlags ().Expand ());
288287 btn->Bind (wxEVT_BUTTON, std::bind (&SubsEditBox::CallCommand, this , cmd_name));
@@ -291,7 +290,7 @@ void SubsEditBox::MakeButton(const char *cmd_name) {
291290wxButton *SubsEditBox::MakeBottomButton (const char *cmd_name) {
292291 cmd::Command *command = cmd::get (cmd_name);
293292 wxButton *btn = new wxButton (this , -1 , command->StrDisplay (c));
294- ToolTipManager::Bind (btn, command->StrHelp (), " Subtitle Edit Box" , cmd_name);
293+ tool_tip_bindings. emplace_back (btn, command->StrHelp (), " Subtitle Edit Box" , cmd_name);
295294
296295 btn->Bind (wxEVT_BUTTON, std::bind (&SubsEditBox::CallCommand, this , cmd_name));
297296 return btn;
0 commit comments