~ubuntu-branches/ubuntu/wily/ardour/wily

« back to all changes in this revision

Viewing changes to gtk2_ardour/crossfade_edit.cc

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Knoth
  • Date: 2010-06-01 20:58:59 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100601205859-wusr00931ozs7k8j
Tags: 1:2.8.8-1
* Imported Upstream version 2.8.8
* Refresh ardour-x-change.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
          select_in_button (_("Fade In")),
97
97
          select_out_button (_("Fade Out"))
98
98
{
99
 
        set_wmclass (X_("ardour_automationedit"), "Ardour");
 
99
        set_wmclass (X_("ardour_automationedit"), PROGRAM_NAME);
100
100
        set_name ("CrossfadeEditWindow");
101
101
        set_position (Gtk::WIN_POS_MOUSE);
102
102
 
412
412
                if (point_grabbed) {
413
413
                        double new_x, new_y;
414
414
 
415
 
                        /* can't drag first or last points horizontally */
 
415
                        /* can't drag first or last points horizontally or vetically*/
416
416
 
417
417
                        if (point == fade[current].points.front() || point == fade[current].points.back()) {
418
418
                                new_x = point->x;
 
419
                                new_y = point->y;
419
420
                        } else {
420
421
                                new_x = (event->motion.x - canvas_border)/effective_width();
 
422
                                new_y = 1.0 - ((event->motion.y - canvas_border)/effective_height());
421
423
                        }
422
424
 
423
 
                        new_y = 1.0 - ((event->motion.y - canvas_border)/effective_height());
424
425
                        point->move_to (x_coordinate (new_x), y_coordinate (new_y), 
425
426
                                        new_x, new_y);
426
427
                        redraw ();