mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Factor out 'persistent' tooltip code from the panner
interface and use it for processor box sliders (#4461). git-svn-id: svn://localhost/ardour2/branches/3.0@12661 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
366b7ac36b
commit
f4ed14a83b
13 changed files with 318 additions and 96 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include <gtkmm/paned.h>
|
||||
#include <gtkmm/label.h>
|
||||
#include <gtkmm/comboboxtext.h>
|
||||
#include <gtkmm/tooltip.h>
|
||||
|
||||
#include "i18n.h"
|
||||
|
||||
|
|
@ -631,3 +632,21 @@ Gtkmm2ext::left_aligned_label (string const & t)
|
|||
l->set_alignment (0, 0.5);
|
||||
return l;
|
||||
}
|
||||
|
||||
static bool
|
||||
make_null_tooltip (int, int, bool, const Glib::RefPtr<Gtk::Tooltip>& t)
|
||||
{
|
||||
t->set_tip_area (Gdk::Rectangle (0, 0, 0, 0));
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Hackily arrange for the provided widget to have no tooltip,
|
||||
* and also to stop any other widget from providing one while
|
||||
* the mouse is over w.
|
||||
*/
|
||||
void
|
||||
Gtkmm2ext::set_no_tooltip_whatsoever (Gtk::Widget& w)
|
||||
{
|
||||
w.property_has_tooltip() = true;
|
||||
w.signal_query_tooltip().connect (sigc::ptr_fun (make_null_tooltip));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue