diff --git a/juci/tooltips.cc b/juci/tooltips.cc index a137a20..acaf422 100644 --- a/juci/tooltips.cc +++ b/juci/tooltips.cc @@ -58,7 +58,7 @@ void Tooltips::add(const std::string& text, Glib::RefPtr } void Tooltips::show(const Gdk::Rectangle& rectangle) { - init_adjustments(); + tooltips_rectangle=Gdk::Rectangle(); for(auto& tooltip: tooltips) { tooltip->update(); if(rectangle.intersects(tooltip->text_rectangle)) { @@ -71,7 +71,7 @@ void Tooltips::show(const Gdk::Rectangle& rectangle) { } void Tooltips::show() { - init_adjustments(); + tooltips_rectangle=Gdk::Rectangle(); for(auto& tooltip: tooltips) { tooltip->update(); tooltip->show_all(); @@ -80,7 +80,6 @@ void Tooltips::show() { } void Tooltips::hide() { - init_adjustments(); for(auto& tooltip: tooltips) { tooltip->hide(); } diff --git a/juci/tooltips.h b/juci/tooltips.h index 9593b4c..2dbeb99 100644 --- a/juci/tooltips.h +++ b/juci/tooltips.h @@ -24,8 +24,6 @@ private: class Tooltips { public: Tooltips(Gtk::TextView& text_view): text_view(text_view) {} - - void init_adjustments() {tooltips_rectangle=Gdk::Rectangle();} void clear() {tooltips.clear();}