mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Stop tooltip timeout when a canvas-widget or item is hidden.
This commit is contained in:
parent
976e03c15c
commit
aff92a019d
2 changed files with 12 additions and 1 deletions
|
|
@ -729,6 +729,15 @@ GtkCanvas::deliver_event (GdkEvent* event)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
GtkCanvas::item_shown_or_hidden (Item* item)
|
||||||
|
{
|
||||||
|
if (item == current_tooltip_item) {
|
||||||
|
stop_tooltip_timeout ();
|
||||||
|
}
|
||||||
|
Canvas::item_shown_or_hidden (item);
|
||||||
|
}
|
||||||
|
|
||||||
/** Called when an item is being destroyed.
|
/** Called when an item is being destroyed.
|
||||||
* @param item Item being destroyed.
|
* @param item Item being destroyed.
|
||||||
* @param bounding_box Last known bounding box of the item.
|
* @param bounding_box Last known bounding box of the item.
|
||||||
|
|
@ -1136,6 +1145,7 @@ GtkCanvas::on_map ()
|
||||||
void
|
void
|
||||||
GtkCanvas::on_unmap ()
|
GtkCanvas::on_unmap ()
|
||||||
{
|
{
|
||||||
|
stop_tooltip_timeout ();
|
||||||
Gtk::EventBox::on_unmap();
|
Gtk::EventBox::on_unmap();
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
if (_nsglview) {
|
if (_nsglview) {
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ public:
|
||||||
|
|
||||||
/** Called when an item is being destroyed */
|
/** Called when an item is being destroyed */
|
||||||
virtual void item_going_away (Item *, Rect) {}
|
virtual void item_going_away (Item *, Rect) {}
|
||||||
void item_shown_or_hidden (Item *);
|
virtual void item_shown_or_hidden (Item *);
|
||||||
void item_visual_property_changed (Item*);
|
void item_visual_property_changed (Item*);
|
||||||
void item_changed (Item *, Rect);
|
void item_changed (Item *, Rect);
|
||||||
void item_moved (Item *, Rect);
|
void item_moved (Item *, Rect);
|
||||||
|
|
@ -240,6 +240,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void item_going_away (Item *, Rect);
|
void item_going_away (Item *, Rect);
|
||||||
|
void item_shown_or_hidden (Item *);
|
||||||
bool send_leave_event (Item const *, double, double) const;
|
bool send_leave_event (Item const *, double, double) const;
|
||||||
|
|
||||||
Cairo::RefPtr<Cairo::Surface> canvas_image;
|
Cairo::RefPtr<Cairo::Surface> canvas_image;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue