Commit 07c5cedc authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/gtk/*: got rid of --search-path option and created...

* modules/gui/gtk/*: got rid of --search-path option and created --gtk-search-path and --gnome-search-path instead.
parent 3d8994ab
......@@ -2,7 +2,7 @@
* gnome.c : Gnome plugin for vlc
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* $Id: gnome.c,v 1.18 2004/03/03 20:39:52 gbazin Exp $
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -63,6 +63,11 @@ static void Manage ( intf_thread_t * );
"You can set the maximum height that the configuration windows in the " \
"preferences menu will occupy.")
#define PATH_TEXT N_("Interface default search path")
#define PATH_LONGTEXT N_( \
"This option allows you to set the default path that the interface will " \
"open when looking for a file.")
vlc_module_begin();
#ifdef WIN32
int i = 90;
......@@ -77,6 +82,8 @@ vlc_module_begin();
TOOLBAR_LONGTEXT, VLC_FALSE );
add_integer( "gnome-prefs-maxh", 480, NULL,
PREFS_MAXH_TEXT, PREFS_MAXH_LONGTEXT, VLC_TRUE );
add_directory( "gnome-search-path", NULL, NULL, PATH_TEXT,
PATH_LONGTEXT, VLC_TRUE );
set_capability( "interface", i );
set_callbacks( Open, Close );
......
......@@ -2,7 +2,7 @@
* gtk.c : Gtk+ plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: gtk.c,v 1.23 2004/03/03 20:39:52 gbazin Exp $
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -62,6 +62,11 @@ static int Manage ( intf_thread_t * );
"You can set the maximum height that the configuration windows in the " \
"preferences menu will occupy.")
#define PATH_TEXT N_("Interface default search path")
#define PATH_LONGTEXT N_( \
"This option allows you to set the default path that the interface will " \
"open when looking for a file.")
vlc_module_begin();
#ifdef WIN32
int i = 90;
......@@ -74,6 +79,8 @@ vlc_module_begin();
TOOLTIPS_TEXT, TOOLTIPS_LONGTEXT, VLC_FALSE );
add_integer( "gtk-prefs-maxh", 480, NULL,
PREFS_MAXH_TEXT, PREFS_MAXH_LONGTEXT, VLC_TRUE );
add_directory( "gtk-search-path", NULL, NULL, PATH_TEXT,
PATH_LONGTEXT, VLC_TRUE );
set_capability( "interface", i );
set_callbacks( Open, Close );
......
......@@ -2,7 +2,7 @@
* gtk_open.c : functions to handle file/disc/network open widgets.
*****************************************************************************
* Copyright (C) 2000, 2001, 2003 VideoLAN
* $Id: open.c,v 1.23 2004/01/05 13:07:03 zorglub Exp $
* $Id$
*
* Authors: Sam Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
......@@ -555,7 +555,7 @@ static void GtkOpenShow( intf_thread_t *p_intf, int i_page )
"p_intf", p_intf );
/* FileOpen stuff */
psz_var = config_GetPsz( p_intf, "search-path" );
psz_var = config_GetPsz( p_intf, MODULE_STRING"-search-path" );
if( psz_var )
{
gtk_file_selection_set_filename( GTK_FILE_SELECTION(
......
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