-gint
-PannerUI::pan_automation_style_button_event (GdkEventButton *ev)
-{
- if (ev->type == GDK_BUTTON_RELEASE) {
- return TRUE;
- }
-
- switch (ev->button) {
- case 1:
- if (pan_astyle_menu == 0) {
- build_astyle_menu ();
- }
- pan_astyle_menu->popup (1, ev->time);
- break;
- default:
- break;
- }
- return TRUE;
-}
-
-void
-PannerUI::pan_automation_style_changed ()
-{
- ENSURE_GUI_THREAD (*this, &PannerUI::pan_automation_style_changed)
-
- switch (_width) {
- case Wide:
- pan_automation_style_button.set_label (astyle_string(_panner->automation_style()));
- break;
- case Narrow:
- pan_automation_style_button.set_label (short_astyle_string(_panner->automation_style()));
- break;
- }
-}
-