summaryrefslogtreecommitdiff
path: root/gtk2_ardour/panner_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-05-23 19:54:52 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-05-23 19:54:52 +0000
commit2fba6d0925307abd11be9d8f7a8d2722a2b6ccbd (patch)
tree485eed909963636b010d5f1e24527a6a4b377a42 /gtk2_ardour/panner_ui.cc
parenta222c19737fa2d3fce3971350c1a18906635e29a (diff)
breakout control protocol code into LGPL library; fix panner buttons even more than nick did, plus some other bits and pieces
git-svn-id: svn://localhost/trunk/ardour2@522 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/panner_ui.cc')
-rw-r--r--gtk2_ardour/panner_ui.cc22
1 files changed, 12 insertions, 10 deletions
diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc
index 828cf72579..f430e9c19a 100644
--- a/gtk2_ardour/panner_ui.cc
+++ b/gtk2_ardour/panner_ui.cc
@@ -123,9 +123,9 @@ PannerUI::PannerUI (IO& io, Session& s)
(mem_fun(*this, &PannerUI::panning_link_direction_clicked));
panning_link_button.signal_button_press_event().connect
- (mem_fun(*this, &PannerUI::panning_link_button_press));
+ (mem_fun(*this, &PannerUI::panning_link_button_press), false);
panning_link_button.signal_button_release_event().connect
- (mem_fun(*this, &PannerUI::panning_link_button_release));
+ (mem_fun(*this, &PannerUI::panning_link_button_release), false);
panning_up.set_border_width (3);
panning_down.set_border_width (3);
@@ -154,19 +154,21 @@ PannerUI::PannerUI (IO& io, Session& s)
pan_automation_state_changed ();
}
-gint
+bool
PannerUI::panning_link_button_press (GdkEventButton* ev)
{
- return stop_signal (panning_link_button, "button-press-event");
+ cerr << "link press\n";
+ return true;
}
-gint
+bool
PannerUI::panning_link_button_release (GdkEventButton* ev)
{
+ cerr << "link release\n";
if (!ignore_toggle) {
_io.panner().set_linked (!_io.panner().linked());
}
- return TRUE;
+ return true;
}
void
@@ -395,7 +397,7 @@ PannerUI::setup_pan ()
}
}
-gint
+bool
PannerUI::pan_button_event (GdkEventButton* ev, uint32_t which)
{
switch (ev->button) {
@@ -406,13 +408,13 @@ PannerUI::pan_button_event (GdkEventButton* ev, uint32_t which)
}
build_pan_menu (which);
pan_menu->popup (1, ev->time);
- return TRUE;
+ return true;
break;
default:
- return FALSE;
+ return false;
}
- return FALSE; // what's wrong with gcc?
+ return false; // what's wrong with gcc?
}
void