Changeset 59add6328988b5c6acb83d57817b7b6864730c51

Show
Ignore:
Timestamp:
17/09/05 14:12:54 (3 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1126959174 +0000
git-parent:

[3fba3944f2567fc1e4906271aa716c0b925b69cc]

git-author:
Clément Stenac <zorglub@videolan.org> 1126959174 +0000
Message:

Default to disabling screensaver under X (Closes:#253)
Hide screensaver interface from the prefs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/misc/screensaver.c

    rfe087a3 r59add63  
    4242 *****************************************************************************/ 
    4343vlc_module_begin(); 
    44     set_category( CAT_INTERFACE ); 
    45     set_subcategory( SUBCAT_INTERFACE_CONTROL ); 
    4644    set_description( _("X Screensaver disabler") ); 
    4745    set_capability( "interface", 0 ); 
  • src/libvlc.c

    rc1165dc r59add63  
    749749 
    750750    /* 
    751      * Allways load the hotkeys interface if it exists 
     751     * Always load the hotkeys interface if it exists 
    752752     */ 
    753753    VLC_AddIntf( 0, "hotkeys,none", VLC_FALSE, VLC_FALSE ); 
     754 
     755    /* 
     756     * If needed, load the Xscreensaver interface 
     757     * Currently, only for X 
     758     */ 
     759#ifdef HAVE_X11_XLIB_H 
     760    if( config_GetInt( p_vlc, "disable-screensaver" ) == 1 ) 
     761    { 
     762        VLC_AddIntf( 0, "screensaver", VLC_FALSE, VLC_FALSE ); 
     763    } 
     764#endif 
    754765 
    755766    /* 
  • src/libvlc.h

    r95a7988 r59add63  
    250250#define VIDEO_ON_TOP_LONGTEXT N_("Always place the video window on top of " \ 
    251251    "other windows." ) 
     252 
     253#define SS_TEXT N_("Disable screensaver") 
     254#define SS_LONGTEXT N_("Disable the screensaver during video playback." ) 
    252255 
    253256#define VIDEO_DECO_TEXT N_("Window decorations") 
     
    991994    add_bool( "video-on-top", 0, NULL, VIDEO_ON_TOP_TEXT, 
    992995              VIDEO_ON_TOP_LONGTEXT, VLC_FALSE ); 
     996    add_bool( "disable-screensaver", VLC_TRUE, NULL, SS_TEXT, SS_LONGTEXT, 
     997              VLC_TRUE ); 
    993998 
    994999    set_section( N_("Snapshot") , NULL );