]> git.sesse.net Git - vlc/blobdiff - modules/gui/kde/kde.cpp
* all: don't use input_ToggleES.
[vlc] / modules / gui / kde / kde.cpp
index 5a2ab691488ec487d041980c01a7b018f50e5f13..7cfd2bdd60b3c695955ec668610fb45ce9ef1779 100644 (file)
@@ -2,7 +2,7 @@
  * kde.cpp : KDE plugin for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: kde.cpp,v 1.10 2003/03/30 18:14:37 gbazin Exp $
+ * $Id: kde.cpp,v 1.15 2004/01/25 18:53:07 gbazin Exp $
  *
  * Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
  *
@@ -50,11 +50,10 @@ static void run(intf_thread_t *p_intf);
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    int i = getenv( "DISPLAY" ) == NULL ? 8 : 85;
-    add_category_hint( "kde", NULL, VLC_TRUE );
-    add_file( "kdeuirc", DATA_PATH "/ui.rc", NULL, N_( "path to ui.rc file" ), NULL, VLC_TRUE );
+    /* int i = getenv( "DISPLAY" ) == NULL ? 8 : 85; */
     set_description( _("KDE interface") );
-    set_capability( "interface", i );
+    add_file( "kde-uirc", DATA_PATH "/ui.rc", NULL, N_( "path to ui.rc file" ), NULL, VLC_TRUE );
+    set_capability( "interface", 0 ); /* 0 used to be i, disabled because kvlc not maintained */
     set_program( "kvlc" );
     set_callbacks( open, close );
 vlc_module_end();
@@ -104,18 +103,18 @@ static void close(vlc_object_t *p_this)
 void run(intf_thread_t *p_intf)
 {
     p_intf->p_sys->p_about =
-      new KAboutData( "VideoLAN Client", I18N_NOOP("Kvlc"), VERSION,
-         _("This is the VideoLAN Client, a DVD, MPEG and DivX player. It can "
+      new KAboutData( "kvlc", I18N_NOOP("Kvlc"), VERSION,
+         _("This is the VLC media player, a DVD, MPEG and DivX player. It can "
            "play MPEG and MPEG2 files from a file or from a network source."),
          KAboutData::License_GPL,
-         _("(c) 1996-2003 the VideoLAN team"),
+         _("(c) 1996-2004 the VideoLAN team"),
          0, 0, "");
 
     p_intf->p_sys->p_about->addAuthor( "the VideoLAN team", 0,
                                        "<videolan@videolan.org>" );
 
-    int argc = 1;
-    char *argv[] = { p_intf->p_vlc->psz_object_name, NULL };
+    int argc = 5;
+    char *argv[] = { "vlc", "--icon", DATA_PATH "/kvlc32x32.png", "--miniicon", DATA_PATH "/kvlc16x16.png" };
     KCmdLineArgs::init( argc, argv, p_intf->p_sys->p_about );
 
     /* Subscribe to message queue */