~3v1n0/indicator-sound/launch-context

« back to all changes in this revision

Viewing changes to src/transport-widget.c

  • Committer: Conor Curran
  • Date: 2011-11-16 18:42:25 UTC
  • mfrom: (281.1.1 indicator-sound)
  • Revision ID: conor.curran@canonical.com-20111116184225-82wb3xd7nk1wnhua
merge in fix for poor collision detection

Show diffs side-by-side

added added

removed removed

Lines of Context:
561
561
{
562
562
  TransportAction event = TRANSPORT_ACTION_NO_ACTION;
563
563
  
564
 
  if (x > 67 && x < 112
 
564
  if (x > 57 && x < 102
565
565
      && y > 12 && y < 40){
566
566
    event = TRANSPORT_ACTION_PREVIOUS;
567
567
  }
568
 
  else if (x > 111 && x < 153
 
568
  else if (x > 101 && x < 143
569
569
           && y > 5 && y < 47){
570
570
    event = TRANSPORT_ACTION_PLAY_PAUSE;
571
571
  }
572
 
  else if (x > 152 && x < 197
 
572
  else if (x > 142 && x < 187
573
573
           && y > 12 && y < 40){
574
574
    event = TRANSPORT_ACTION_NEXT;
575
575
  }