~cairo-dock-team/cairo-dock-plug-ins/plug-ins

« back to all changes in this revision

Viewing changes to musicPlayer/src/applet-musicplayer.c

  • Committer: Matthieu Baerts
  • Date: 2012-04-05 10:19:50 UTC
  • Revision ID: matttbe@gmail.com-20120405101950-27ackdocz6rxamrt
MusicPlayer: Fixed a typo about the detection of the MPRIS2 services for handlers with a valid mpris2 string

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
        
452
452
        if (myData.pCurrentHandler != NULL)  // an old handler exist with this name, use it but also look for the associated MPRIS2 service.
453
453
        {
454
 
                myData.cMpris2Service = g_strdup_printf (CD_MPRIS2_SERVICE_BASE".%s",
455
 
                        myData.pCurrentHandler->cMpris2Service ? myData.pCurrentHandler->cMpris2Service : cName);
 
454
                myData.cMpris2Service = myData.pCurrentHandler->cMpris2Service ? g_strdup (myData.pCurrentHandler->cMpris2Service) : g_strdup_printf (CD_MPRIS2_SERVICE_BASE".%s", cName);
 
455
                cd_debug ("We check this MPRIS2 service: %s", myData.cMpris2Service);
456
456
                
457
457
                cairo_dock_watch_dbus_name_owner (myData.cMpris2Service, (CairoDockDbusNameOwnerChangedFunc) _on_name_owner_changed, NULL);
458
458