~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to modules/gui/skins2/events/evt_key.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-06-25 01:09:16 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20100625010916-asxhep2mutg6g6pd
Tags: 1.1.0-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - build and install the libx264 plugin
  - add Xb-Npp header to vlc package
  - Add apport hook to include more vlc dependencies in bug reports
* Drop xulrunner patches.
* Drop 502_xulrunner_191.diff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * evt_key.cpp
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2003 the VideoLAN team
5
 
 * $Id: 086a0f617482894d70c32a0a6ebc30f2cec53fd7 $
 
5
 * $Id: 9cf34675e5a49ffbed5191e2c4ca66abc719fe3e $
6
6
 *
7
7
 * Authors: Cyril Deguet     <asmax@via.ecp.fr>
8
8
 *          Olivier Teulière <ipkiss@via.ecp.fr>
23
23
 *****************************************************************************/
24
24
 
25
25
#include "evt_key.hpp"
26
 
#include "vlc_keys.h"
 
26
#include <vlc_keys.h>
27
27
 
28
28
 
29
29
const string EvtKey::getAsString() const
39
39
        msg_Warn( getIntf(), "Unknown action type" );
40
40
 
41
41
    // Add the key
42
 
    const char *keyName = KeyToString( m_key );
 
42
    char *keyName = KeyToString( m_key );
43
43
    if( keyName )
 
44
    {
44
45
        event += (string)":" + keyName;
 
46
        free( keyName );
 
47
    }
45
48
    else
46
49
        msg_Warn( getIntf(), "Unknown key: %d", m_key );
47
50
 
50
53
 
51
54
    return event;
52
55
}
53