Changeset dfa3c5d025680525c0999df341d2ef881bffcd0f

Show
Ignore:
Timestamp:
04/21/03 03:47:42 (5 years ago)
Author:
Cyril Deguet <asmax@videolan.org>
git-committer:
Cyril Deguet <asmax@videolan.org> 1050889662 +0000
git-parent:

[474a83cf3d35e1d7464fffa6042553bd66aae20b]

git-author:
Cyril Deguet <asmax@videolan.org> 1050889662 +0000
Message:

* shortcut handling under linux

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • defconfig

    r50000c8 rdfa3c5d  
    7070# CONFIG_DV is not set 
    7171# CONFIG_FLAC is not set 
    72 # CONFIG_LIBMPEG2 is not set 
     72CONFIG_LIBMPEG2=y 
    7373CONFIG_VORBIS=y 
    7474# CONFIG_TREMOR is not set 
  • modules/gui/skins/gtk2/gtk2_run.cpp

    r474a83c rdfa3c5d  
    33 ***************************************************************************** 
    44 * Copyright (C) 2003 VideoLAN 
    5  * $Id: gtk2_run.cpp,v 1.15 2003/04/21 00:54:26 ipkiss Exp $ 
     5 * $Id: gtk2_run.cpp,v 1.16 2003/04/21 01:47:42 asmax Exp $ 
    66 * 
    77 * Authors: Cyril Deguet     <asmax@videolan.org> 
     
    122122    } 
    123123 
     124    // Process keyboard shortcuts 
     125    if( msg == GDK_KEY_PRESS ) 
     126    { 
     127        int KeyModifier = 0; 
     128        // If key is ALT 
     129        if( ((GdkEventKey *)event)->state & GDK_MOD1_MASK ) 
     130        { 
     131            KeyModifier = 1; 
     132        } 
     133        // If key is CTRL 
     134        else if( ((GdkEventKey *)event)->state & GDK_CONTROL_MASK ) 
     135        { 
     136            KeyModifier = 2; 
     137        } 
     138        int key = ((GdkEventKey *)event)->keyval; 
     139        // Translate into lower case 
     140        if( key >= 'a' && key <= 'z' ) 
     141        { 
     142            key -= ('a' - 'A'); 
     143        } 
     144        if( KeyModifier > 0 ) 
     145            p_intf->p_sys->p_theme->EvtBank->TestShortcut( key , KeyModifier ); 
     146    } 
     147 
    124148    // Send event 
    125     if( IsVLCEvent( msg ) ) 
     149    else if( IsVLCEvent( msg ) ) 
    126150    { 
    127151        if( !proc->EventProc( evt ) )