* added an option to disable the fspanel
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 18 Dec 2006 11:34:46 +0000 (11:34 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 18 Dec 2006 11:34:46 +0000 (11:34 +0000)
modules/gui/macosx/fspanel.m
modules/gui/macosx/macosx.m

index 56ce136..85e67fd 100644 (file)
 \r
 - (void)fadeIn\r
 {\r
+    /* in case that the user don't want us to appear, just return here */\r
+    if(! config_GetInt( VLCIntf, "macosx-fspanel" ) )\r
+        return;\r
+    \r
     if( [self alphaValue] < 1.0 )\r
     {\r
         if (![self fadeTimer])\r
index 3dd28e6..d38a56f 100644 (file)
@@ -73,7 +73,11 @@ void E_(CloseVideoGL) ( vlc_object_t * );
 #define BACKGROUND_TEXT N_("Use as Desktop Background")
 #define BACKGROUND_LONGTEXT N_("Use the video as the Desktop Background " \
         "Desktop icons cannot be interacted with in this mode." )
-        
+
+#define FSPANEL_TEXT N_("Show Fullscreen controller")
+#define FSPANEL_LONGTEXT N_("Shows a lucent controller when moving the mouse " \
+                            "in fullscreen mode.") 
+
 #define WIZARD_OPTIONS_SAVING_TEXT N_("Remember wizard options")
 #define WIZARD_OPTIONS_SAVING_LONGTEXT N_("Remember the options in the " \
         "wizard during one session of VLC.") 
@@ -92,6 +96,8 @@ vlc_module_begin();
                      VLC_FALSE );
     add_bool( "macosx-autoplay", 1, NULL, AUTOPLAY_OSX_TEST, AUTOPLAY_OSX_LONGTEXT,
                      VLC_FALSE );
+    add_bool( "macosx-fspanel", 1, NULL, FSPANEL_TEXT, FSPANEL_LONGTEXT,
+                     VLC_FALSE );
     add_bool( "macosx-wizard-keep", 1, NULL, WIZARD_OPTIONS_SAVING_TEXT,
                 WIZARD_OPTIONS_SAVING_LONGTEXT, VLC_TRUE );