]> git.sesse.net Git - vlc/commitdiff
* modules/gui/skins2/parser/interpreter.cpp: Added the "vlc.ontop()" action
authorOlivier Teulière <ipkiss@videolan.org>
Sun, 1 Aug 2004 16:43:58 +0000 (16:43 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Sun, 1 Aug 2004 16:43:58 +0000 (16:43 +0000)
 * doc/skins/skins2-howto.xml: Updated the doc

doc/skins/skins2-howto.xml
modules/gui/skins2/parser/interpreter.cpp
modules/gui/skins2/src/vlcproc.cpp

index 80bfbaf516ba099a74ab9ff09c4a0065e1dfeae3..94315dc0579bfd95f544b3959ed10738146cc879 100644 (file)
@@ -712,9 +712,14 @@ difficulty to understand how VLC skins work.</para>
   <listitem><para>
     <emphasis>vlc.fullscreen()</emphasis>: Toggle the fullscreen mode.
   </para></listitem>
-  <!-- _Enable it for 0.7.3_ listitem><para>
+<!--  TODO: Enable it for 0.7.3
+  <listitem><para>
+    <emphasis>vlc.ontop()</emphasis>: Toggle the "Always on top" status.
+  </para></listitem>
+  <listitem><para>
     <emphasis>vlc.minimize()</emphasis>: Minimize VLC.
-  </para></listitem-->
+  </para></listitem>
+-->
   <listitem><para>
     <emphasis>vlc.quit()</emphasis>: Quit VLC.
   </para></listitem>
index 3acc27d9cbed8b156e7aeba0b6100c194331cd00..19a28ad4b12a66e9d2c9ee5613db4675220cb77e 100644 (file)
@@ -32,6 +32,7 @@
 #include "../commands/cmd_minimize.hpp"
 #include "../commands/cmd_input.hpp"
 #include "../commands/cmd_fullscreen.hpp"
+#include "../commands/cmd_on_top.hpp"
 #include "../commands/cmd_show_window.hpp"
 #include "../src/theme.hpp"
 #include "../src/var_manager.hpp"
@@ -77,6 +78,7 @@ Interpreter::Interpreter( intf_thread_t *pIntf ): SkinObject( pIntf )
     REGISTER_CMD( "vlc.slower()", CmdSlower )
     REGISTER_CMD( "vlc.mute()", CmdMute )
     REGISTER_CMD( "vlc.minimize()", CmdMinimize )
+    REGISTER_CMD( "vlc.ontop()", CmdOnTop )
     REGISTER_CMD( "vlc.quit()", CmdQuit )
 
     // Register the constant bool variables in the var manager
index 040839fd9010e261e2046b008cad26d4e6011fc6..d664e324344969bae38a4a6d5c59c0cbe2b65d2e 100755 (executable)
@@ -79,7 +79,7 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ),
     REGISTER_VAR( m_cVarTime, StreamTime, "time" )
     REGISTER_VAR( m_cVarVolume, Volume, "volume" )
     REGISTER_VAR( m_cVarStream, Stream, "stream" )
-    REGISTER_VAR( m_cVarMute, VarBoolImpl, "vlc.isMute" ) // XXX broken
+    REGISTER_VAR( m_cVarMute, VarBoolImpl, "vlc.isMute" )
     REGISTER_VAR( m_cVarPlaying, VarBoolImpl, "vlc.isPlaying" )
     REGISTER_VAR( m_cVarStopped, VarBoolImpl, "vlc.isStopped" )
     REGISTER_VAR( m_cVarPaused, VarBoolImpl, "vlc.isPaused" )