~ted/indicator-sound/greeter-control

« back to all changes in this revision

Viewing changes to src/mpris-controller.vala

  • Committer: Conor Curran
  • Date: 2010-06-21 10:36:58 UTC
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: conor.curran@canonical.com-20100621103658-msyb0m4mtrpzp0ho
lots of changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        private void onStatusChange(dynamic DBus.Object mpris_client, status st)
77
77
  {
78
78
    debug("onStatusChange - signal received");  
79
 
                //ValueArray a = new ValueArray(4);
80
 
                //Value v = new Value(typeof(int32));          
81
 
                //v.set_int(st.playback);
82
 
                //a.append(v);
83
 
                //debug("onStatusChange - play %i", a.get_nth(0).get_int());
84
 
                //int playback = (ValueArray)st.get_nth(0).get_int();
85
 
                //int shuffle = ar.get_nth(1).get_int();
 
79
                status* status = &st;
 
80
                unowned ValueArray ar = (ValueArray)status;
 
81
                
 
82
                int playback = ar.get_nth(0).get_int();
 
83
                debug("onStatusChange - play %i", ar.get_nth(0).get_int());
 
84
                
86
85
                //int repeat = ar.get_nth(2).get_int();
87
86
                //int endless = ar.get_nth(3).get_int();                
88
87
        }