diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 16:24:45 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 16:24:45 +0500 |
| commit | cdf2832347b8fdf0389cd373c2ead0ac5d071037 (patch) | |
| tree | 96f9771aed0710899aa6cbba2a84dadfe76e996e /src/Fl_Tooltip.cxx | |
| parent | db214d1145e46d527a46d1fc2519548d2c4d23f1 (diff) | |
wip
Diffstat (limited to 'src/Fl_Tooltip.cxx')
| -rw-r--r-- | src/Fl_Tooltip.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx index 00c033b15..62c2f5ea1 100644 --- a/src/Fl_Tooltip.cxx +++ b/src/Fl_Tooltip.cxx @@ -41,7 +41,7 @@ int Fl_Tooltip::margin_width_ = 3; int Fl_Tooltip::margin_height_ = 3; int Fl_Tooltip::wrap_width_ = 400; const int Fl_Tooltip::draw_symbols_ = 1; -char *Fl_Tooltip::override_text_ = nullptr; +char *Fl_Tooltip::override_text_ = 0; static const char* tip; @@ -166,7 +166,7 @@ static void tooltip_hide_timeout(void*) { The provided text will be copied into a local buffer. To apply the override, the event handler must return 1. - To disable the tooltip for the current event, set the override text to nullptr + To disable the tooltip for the current event, set the override text to 0 or an empty string ("") and return 1. \param[in] new_text a C string that will be copied into a buffer @@ -179,10 +179,10 @@ static void tooltip_hide_timeout(void*) { int Fl_Tooltip::override_text(const char *new_text) { if (new_text != override_text_) { if (window && window->label()==override_text_) - ((Fl_Widget *) window)->label(nullptr); + ((Fl_Widget *) window)->label(0); if (override_text_) ::free(override_text_); - override_text_ = nullptr; + override_text_ = 0; if (new_text) override_text_ = fl_strdup(new_text); } @@ -355,7 +355,7 @@ void Fl_Tooltip::enter_area(Fl_Widget* wid, int x,int y,int w,int h, const char* window->hide(); Fl::remove_timeout(tooltip_hide_timeout); } - tooltip_timeout_(nullptr); + tooltip_timeout_(0); } else { if (window && window->visible()) { window->hide(); |
