13
0

remove tooltip from stereo panner

git-svn-id: svn://localhost/ardour2/branches/3.0@8416 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-01-03 15:50:48 +00:00
parent 749e90886d
commit e0f2b0368a
2 changed files with 0 additions and 21 deletions

View File

@ -78,7 +78,6 @@ StereoPanner::StereoPanner (boost::shared_ptr<PBD::Controllable> position, boost
position_control->Changed.connect (connections, invalidator(*this), boost::bind (&StereoPanner::value_change, this), gui_context());
width_control->Changed.connect (connections, invalidator(*this), boost::bind (&StereoPanner::value_change, this), gui_context());
set_tooltip ();
set_flags (Gtk::CAN_FOCUS);
add_events (Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK|
@ -95,21 +94,6 @@ StereoPanner::~StereoPanner ()
delete drag_data_window;
}
void
StereoPanner::set_tooltip ()
{
Gtkmm2ext::UI::instance()->set_tip (this,
string_compose (_("0 -> set width to zero (mono)\n%1-uparrow -> set width to 100\n%1-downarrow -> set width to -100"),
Keyboard::secondary_modifier_name()).c_str());
}
void
StereoPanner::unset_tooltip ()
{
Gtkmm2ext::UI::instance()->set_tip (this, "");
}
void
StereoPanner::set_drag_data ()
{
@ -437,8 +421,6 @@ StereoPanner::on_button_release_event (GdkEventButton* ev)
width_control->set_value (1.0);
}
set_tooltip ();
return true;
}
@ -507,7 +489,6 @@ StereoPanner::on_motion_notify_event (GdkEventMotion* ev)
/* move the window a little away from the mouse */
drag_data_window->move (ev->x_root+30, ev->y_root+30);
drag_data_window->present ();
unset_tooltip ();
}
int w = get_width();

View File

@ -69,8 +69,6 @@ class StereoPanner : public Gtk::DrawingArea
void value_change ();
void set_drag_data ();
void set_tooltip ();
void unset_tooltip ();
struct ColorScheme {
uint32_t outline;