// GTK2FIX
// route_list_display.signal_rows_reordered().connect (mem_fun (*this, &Editor::queue_route_list_reordered));
- // GTK2FIX
- // route_display_model->set_sort_func (0, mem_fun (*this, &Editor::route_list_compare_func));
+ route_display_model->set_sort_func (0, mem_fun (*this, &Editor::route_list_compare_func));
+ route_display_model->set_sort_column (0, SORT_ASCENDING);
route_list_scroller.add (route_list_display);
route_list_scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
double wx;
double wy;
- track_canvas.window_to_world ( x, y, wx, wy);
+ track_canvas.window_to_world (x, y, wx, wy);
+ wx += horizontal_adjustment.get_value();
+ wy += vertical_adjustment.get_value();
ev.type = GDK_BUTTON_RELEASE;
ev.button.x = wx;
}
track_canvas.window_to_world (x, y, worldx, worldy);
+ worldx += horizontal_adjustment.get_value();
+ worldy += vertical_adjustment.get_value();
ev.type = GDK_BUTTON_PRESS;
ev.button.x = worldx;
position is negative (as can be the case with motion events in particular),
the frame location is always positive.
*/
-
+
return pixel_to_frame (*pcx);
}
drag_info.current_pointer_frame = event_frame (event, &drag_info.current_pointer_x,
&drag_info.current_pointer_y);
+
if (drag_info.item) {
/* item != 0 is the best test i can think of for
dragging.
Playlist *playlist;
track_canvas.window_to_world (x, y, wx, wy);
+ wx += horizontal_adjustment.get_value();
+ wy += vertical_adjustment.get_value();
GdkEvent event;
event.type = GDK_BUTTON_RELEASE;
{
int x, y;
double wx, wy;
+
track_canvas.get_pointer (x, y);
track_canvas.window_to_world (x, y, wx, wy);
+ wx += horizontal_adjustment.get_value();
+ wy += vertical_adjustment.get_value();
+
GdkEvent event;
event.type = GDK_BUTTON_RELEASE;
event.button.x = wx;