summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2015-04-09 15:46:12 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2015-04-09 15:46:12 +0100
commitb3fb73812cd7e22eed190b6f2c2c3b42d2a4029f (patch)
tree681e54715492717fc231c773a07cd7c4fcbde105
parent2234fd4b8af2e2cbb28bbe41f35b334671aebcae (diff)
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).
-rw-r--r--libs/canvas/canvas.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc
index 11abd1a7d5..72acbd4021 100644
--- a/libs/canvas/canvas.cc
+++ b/libs/canvas/canvas.cc
@@ -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 */