kde.cpp: explicitly tell kde with icons to use. Should fix a crash that

caused AIGALRM.
kde.cpp, interface.cpp: turn --kdeuirc into --kde-uirc to comply with naming
conventions
parent 39b6b974
...@@ -162,8 +162,8 @@ void KInterface::initActions() ...@@ -162,8 +162,8 @@ void KInterface::initActions()
prev->setStatusText( i18n( "Prev" ) ); prev->setStatusText( i18n( "Prev" ) );
next->setStatusText( i18n( "Next" ) ); next->setStatusText( i18n( "Next" ) );
// use the absolute path to your ktestui.rc file for testing purpose in createGUI(); // use the absolute path to your ktestui.rc file for testing purpose in createGUI();
char *uifile = config_GetPsz( p_intf, "kdeuirc" ); char *psz_uifile = config_GetPsz( p_intf, "kde-uirc" );
createGUI( uifile ); createGUI( psz_uifile );
// createGUI( "./modules/gui/kde/ui.rc" ); // createGUI( "./modules/gui/kde/ui.rc" );
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* kde.cpp : KDE plugin for vlc * kde.cpp : KDE plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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 * Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
* *
...@@ -52,7 +52,7 @@ static void run(intf_thread_t *p_intf); ...@@ -52,7 +52,7 @@ static void run(intf_thread_t *p_intf);
vlc_module_begin(); vlc_module_begin();
int i = getenv( "DISPLAY" ) == NULL ? 8 : 85; int i = getenv( "DISPLAY" ) == NULL ? 8 : 85;
add_category_hint( "kde", NULL, VLC_TRUE ); 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_description( _("KDE interface") );
set_capability( "interface", i ); set_capability( "interface", i );
set_program( "kvlc" ); set_program( "kvlc" );
...@@ -104,7 +104,7 @@ static void close(vlc_object_t *p_this) ...@@ -104,7 +104,7 @@ static void close(vlc_object_t *p_this)
void run(intf_thread_t *p_intf) void run(intf_thread_t *p_intf)
{ {
p_intf->p_sys->p_about = 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 " _("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."), "play MPEG and MPEG2 files from a file or from a network source."),
KAboutData::License_GPL, KAboutData::License_GPL,
...@@ -114,8 +114,8 @@ void run(intf_thread_t *p_intf) ...@@ -114,8 +114,8 @@ void run(intf_thread_t *p_intf)
p_intf->p_sys->p_about->addAuthor( "the VideoLAN team", 0, p_intf->p_sys->p_about->addAuthor( "the VideoLAN team", 0,
"<videolan@videolan.org>" ); "<videolan@videolan.org>" );
int argc = 1; int argc = 5;
char *argv[] = { p_intf->p_vlc->psz_object_name, NULL }; char *argv[] = { "vlc", "--icon", DATA_PATH "/kvlc32x32.png", "--miniicon", DATA_PATH "/kvlc16x16.png" };
KCmdLineArgs::init( argc, argv, p_intf->p_sys->p_about ); KCmdLineArgs::init( argc, argv, p_intf->p_sys->p_about );
/* Subscribe to message queue */ /* Subscribe to message queue */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment