Gdk::SCROLL_MASK);
controls_ebox.set_flags (CAN_FOCUS);
+ /* note that this handler connects *before* the default handler */
controls_ebox.signal_scroll_event().connect (sigc::mem_fun (*this, &TimeAxisView::controls_ebox_scroll), true);
controls_ebox.signal_button_press_event().connect (sigc::mem_fun (*this, &TimeAxisView::controls_ebox_button_press));
controls_ebox.signal_button_release_event().connect (sigc::mem_fun (*this, &TimeAxisView::controls_ebox_button_release));
bool
TimeAxisView::controls_ebox_scroll (GdkEventScroll* ev)
{
- if (Keyboard::some_magic_widget_has_focus()) {
- return false;
- }
-
switch (ev->direction) {
case GDK_SCROLL_UP:
if (Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier)) {
TimeAxisView::name_entry_focus_in (GdkEventFocus*)
{
name_entry.select_region (0, -1);
- name_entry.set_name ("EditorActiveTrackNameDisplay");
+ name_entry.set_state (STATE_SELECTED);
return false;
}
last_name_entry_key_press_event = 0;
name_entry_key_timeout.disconnect ();
- name_entry.set_name ("EditorTrackNameDisplay");
name_entry.select_region (0,0);
+ name_entry.set_state (STATE_NORMAL);
/* do the real stuff */