Remove some calls to process_updates() which I think prevent GTK coalescing redraw requests. Remove some debugging code. Suspend update of MIDI regions during scroomer drag to speed things up (#3954).
git-svn-id: svn://localhost/ardour2/branches/3.0@9357 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -57,8 +57,8 @@ public:
|
||||
|
||||
inline int position_of(Component comp) { return position[comp]; }
|
||||
|
||||
// debug
|
||||
std::string get_comp_name(Component);
|
||||
sigc::signal0<void> DragStarting;
|
||||
sigc::signal0<void> DragFinishing;
|
||||
|
||||
protected:
|
||||
Gtk::Adjustment& adj;
|
||||
|
||||
@@ -241,6 +241,8 @@ Scroomer::on_button_press_event (GdkEventButton* ev)
|
||||
} else {
|
||||
pinch = false;
|
||||
}
|
||||
|
||||
DragStarting (); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -281,6 +283,7 @@ Scroomer::on_button_release_event (GdkEventButton* ev)
|
||||
grab_comp = None;
|
||||
|
||||
remove_modal_grab();
|
||||
DragFinishing (); /* EMIT SIGNAL */
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -391,29 +394,5 @@ Scroomer::adjustment_changed()
|
||||
rect.set_height(position[BottomBase] - old_pos[Handle2]);
|
||||
win->invalidate_rect(rect, false);
|
||||
}
|
||||
|
||||
win->process_updates(false);
|
||||
}
|
||||
|
||||
std::string
|
||||
Scroomer::get_comp_name(Component c)
|
||||
{
|
||||
switch (c) {
|
||||
case TopBase:
|
||||
return "TopBase";
|
||||
case Handle1:
|
||||
return "Handle1";
|
||||
case Slider:
|
||||
return "Slider";
|
||||
case Handle2:
|
||||
return "Handle2";
|
||||
case BottomBase:
|
||||
return "BottomBase";
|
||||
case Total:
|
||||
return "Total";
|
||||
case None:
|
||||
return "None";
|
||||
default:
|
||||
return "ERROR";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user