mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Position (and size) canvas tooltips such that they better resemble Gtk tooltips
Mixbus in particular uses both types of tooltip so we might as well make them look the same. N.B. The appearance is fine now on Windows but needs to be tested on the other platforms (i.e. some tweaking might be necessary).
This commit is contained in:
parent
2234fd4b8a
commit
b3fb73812c
1 changed files with 3 additions and 2 deletions
|
|
@ -1156,7 +1156,7 @@ GtkCanvas::show_tooltip ()
|
|||
tooltip_label = manage (new Gtk::Label);
|
||||
tooltip_label->show ();
|
||||
tooltip_window->add (*tooltip_label);
|
||||
tooltip_window->set_border_width (6);
|
||||
tooltip_window->set_border_width (1);
|
||||
tooltip_window->set_name ("tooltip");
|
||||
}
|
||||
|
||||
|
|
@ -1189,7 +1189,8 @@ GtkCanvas::show_tooltip ()
|
|||
* to get it away from the pointer.
|
||||
*/
|
||||
|
||||
tooltip_window_origin.x += 20;
|
||||
tooltip_window_origin.x += 30;
|
||||
tooltip_window_origin.y += 45;
|
||||
|
||||
/* move the tooltip window into position */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue