]> git.sesse.net Git - vlc/commitdiff
kde.cpp: explicitly tell kde with icons to use. Should fix a crash that
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Tue, 20 May 2003 16:08:59 +0000 (16:08 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Tue, 20 May 2003 16:08:59 +0000 (16:08 +0000)
caused AIGALRM.
kde.cpp, interface.cpp: turn --kdeuirc into --kde-uirc to comply with naming
conventions

modules/gui/kde/interface.cpp
modules/gui/kde/kde.cpp

index d83e3dacbd1415d2eb31b2a2d56752739d55ee7e..7a9c91f463c5cdf56dab8905cf0c07e5746fc92e 100644 (file)
@@ -162,8 +162,8 @@ void KInterface::initActions()
     prev->setStatusText( i18n( "Prev" ) );
     next->setStatusText( i18n( "Next" ) );
     // use the absolute path to your ktestui.rc file for testing purpose in createGUI();
-    char *uifile = config_GetPsz( p_intf, "kdeuirc" );
-    createGUI( uifile );
+    char *psz_uifile = config_GetPsz( p_intf, "kde-uirc" );
+    createGUI( psz_uifile );
 //    createGUI( "./modules/gui/kde/ui.rc" );
 }
 
index 5a2ab691488ec487d041980c01a7b018f50e5f13..930406048400e4780a85cda6370140703f4e7e60 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.11 2003/05/20 16:08:59 sigmunau Exp $
  *
  * Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
  *
@@ -52,7 +52,7 @@ static void run(intf_thread_t *p_intf);
 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 );
+    add_file( "kde-uirc", DATA_PATH "/ui.rc", NULL, N_( "path to ui.rc file" ), NULL, VLC_TRUE );
     set_description( _("KDE interface") );
     set_capability( "interface", i );
     set_program( "kvlc" );
@@ -104,7 +104,7 @@ 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,
+      new KAboutData( "kvlc", I18N_NOOP("Kvlc"), VERSION,
          _("This is the VideoLAN Client, a DVD, MPEG and DivX player. It can "
            "play MPEG and MPEG2 files from a file or from a network source."),
          KAboutData::License_GPL,
@@ -114,8 +114,8 @@ void run(intf_thread_t *p_intf)
     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 */