]> git.sesse.net Git - vlc/blobdiff - plugins/kde/kde.cpp
* ./plugins/chroma/i420_rgb8.c: plain C 8 bpp transformation.
[vlc] / plugins / kde / kde.cpp
index 53c19f66e80fd660c736e2323445f7c18a6b4327..da414e8fcef32a0c5e2a843a9b0f5c25016b0551 100644 (file)
@@ -2,7 +2,7 @@
  * kde.cpp : KDE plugin for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: kde.cpp,v 1.5 2001/12/30 07:09:55 sam Exp $
+ * $Id: kde.cpp,v 1.9 2002/03/17 17:00:38 sam Exp $
  *
  * Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
  *
@@ -48,13 +48,21 @@ extern "C"
 {
 
 MODULE_CONFIG_START
-    ADD_WINDOW( "Configuration for KDE module" )
-        ADD_COMMENT( "Ha, ha -- nothing to configure yet" )
 MODULE_CONFIG_STOP
 
 MODULE_INIT_START
     SET_DESCRIPTION( "KDE interface module" )
-    ADD_CAPABILITY( INTF, 80 )
+#ifndef WIN32
+    if( getenv( "DISPLAY" ) == NULL )
+    {
+        ADD_CAPABILITY( INTF, 8 )
+    }
+    else
+#endif
+    {
+        ADD_CAPABILITY( INTF, 85 )
+    }
+    ADD_SHORTCUT( "kde" )
     ADD_PROGRAM( "kvlc" )
 MODULE_INIT_STOP
 
@@ -111,8 +119,7 @@ KThread::KThread(intf_thread_t *p_intf)
     this->p_intf = p_intf;
 
     p_intf->p_sys->p_about =
-        new KAboutData( "VideoLAN Client", I18N_NOOP("Kvlc"),
-            VLC_VERSION,
+        new KAboutData( "VideoLAN Client", I18N_NOOP("Kvlc"), VERSION,
             "This is the VideoLAN client, a DVD and MPEG player. It can play MPEG and MPEG 2 files from a file or from a network source.", KAboutData::License_GPL,
             "(C) 1996, 1997, 1998, 1999, 2000, 2001 - the VideoLAN Team", 0, 0, "dae@chez.com");