[totem] Bug 593556 - Controls not shown in non-fullscreen mode



commit 149a572a2b11517a7cde9a73f44af0bf947428f3
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 3 14:11:16 2009 +0100

    Bug 593556 - Controls not shown in non-fullscreen mode
    
    Show the controls when VLC mode wasn't explicitely asked.

 browser-plugin/totemPlugin.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/browser-plugin/totemPlugin.cpp b/browser-plugin/totemPlugin.cpp
index 7745e75..ecefa05 100644
--- a/browser-plugin/totemPlugin.cpp
+++ b/browser-plugin/totemPlugin.cpp
@@ -2110,9 +2110,12 @@ totemPlugin::Init (NPMIMEType mimetype,
 
 #endif /* TOTEM_NARROWSPACE_PLUGIN */
 
-/* VLC plugin defaults to have its controller hidden */
+/* VLC plugin defaults to have its controller hidden
+ * But we don't want to hide it if VLC wasn't explicitely
+ * requested */
 #ifdef TOTEM_CONE_PLUGIN
-	mControllerHidden = true;
+	if (strstr ((const char *) mimetype, "vlc") != NULL)
+		mControllerHidden = true;
 #endif
 
 #if defined(TOTEM_COMPLEX_PLUGIN) && defined(HAVE_NSTARRAY_H)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]