Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
cb419842
Commit
cb419842
authored
Nov 20, 2002
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final cleanup before release.
parent
05d3c511
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
plugins/familiar/familiar.c
plugins/familiar/familiar.c
+1
-2
plugins/familiar/familiar_callbacks.c
plugins/familiar/familiar_callbacks.c
+7
-10
No files found.
plugins/familiar/familiar.c
View file @
cb419842
...
...
@@ -2,7 +2,7 @@
* familiar.c : familiar plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: familiar.c,v 1.8.2.
9 2002/10/29 20:53:30
jpsaman Exp $
* $Id: familiar.c,v 1.8.2.
10 2002/11/20 21:26:09
jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -226,7 +226,6 @@ static void Run( intf_thread_t *p_intf )
/* Show the control window */
gtk_widget_show
(
p_intf
->
p_sys
->
p_window
);
ReadDirectory
(
p_intf
->
p_sys
->
p_clist
,
"/mnt"
);
// OpenDirectory(p_intf->p_sys->p_clist, "/mnt");
/* Sleep to avoid using all CPU - since some interfaces needs to access
* keyboard events, a 100ms delay is a good compromise */
...
...
plugins/familiar/familiar_callbacks.c
View file @
cb419842
...
...
@@ -2,7 +2,7 @@
* familiar_callbacks.c : Callbacks for the Familiar Linux Gtk+ plugin.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: familiar_callbacks.c,v 1.6.2.1
2 2002/10/30 22:42:26
jpsaman Exp $
* $Id: familiar_callbacks.c,v 1.6.2.1
3 2002/11/20 21:26:09
jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -131,19 +131,17 @@ void ReadDirectory( GtkCList *clist, char *psz_dir )
{
intf_thread_t
*
p_intf
=
GtkGetIntf
(
clist
);
struct
dirent
**
namelist
;
int
n
=-
1
;
int
status
=-
1
;
int
n
,
status
;
printf
(
"Read directory: %s
\n
"
,
psz_dir
);
//
printf( "Read directory: %s\n", psz_dir );
if
(
psz_dir
)
{
status
=
chdir
(
psz_dir
);
if
(
status
<
0
)
intf_ErrMsg
(
"File is not a directory."
);
}
n
=
scandir
(
psz_dir
,
&
namelist
,
0
,
NULL
);
n
=
scandir
(
"."
,
&
namelist
,
0
,
alphasort
);
printf
(
"n=%d
\n
"
,
n
);
if
(
n
<
0
)
perror
(
"scandir"
);
else
...
...
@@ -158,7 +156,7 @@ void ReadDirectory( GtkCList *clist, char *psz_dir )
/* This is a list of strings. */
ppsz_text
[
0
]
=
namelist
[
i
]
->
d_name
;
ppsz_text
[
1
]
=
get_file_perm
(
namelist
[
i
]
->
d_name
);
printf
(
"Entry: %s, %s
\n
"
,
namelist
[
i
]
->
d_name
,
ppsz_text
[
1
]
);
// printf( "Entry: %s(%d), %s\n", namelist[i]->d_name,strlen(namelist[i]->d_name)
, ppsz_text[1] );
gtk_clist_insert
(
p_intf
->
p_sys
->
p_clist
,
i
,
ppsz_text
);
free
(
namelist
[
i
]);
}
...
...
@@ -167,6 +165,7 @@ void ReadDirectory( GtkCList *clist, char *psz_dir )
}
}
#ifdef 0
void
OpenDirectory
(
GtkCList
*
clist
,
char
*
psz_dir
)
{
intf_thread_t
*
p_intf
=
GtkGetIntf
(
clist
);
...
...
@@ -228,6 +227,7 @@ void OpenDirectory( GtkCList *clist, char *psz_dir )
gtk_clist_thaw
(
p_intf
->
p_sys
->
p_clist
);
}
#endif
static
char
*
get_file_perm
(
const
char
*
path
)
{
...
...
@@ -333,7 +333,6 @@ on_toolbar_open_clicked (GtkButton *button,
if
(
p_intf
->
p_sys
->
p_clist
)
{
ReadDirectory
(
p_intf
->
p_sys
->
p_clist
,
"."
);
// OpenDirectory(p_intf->p_sys->p_clist, ".");
}
}
...
...
@@ -497,7 +496,6 @@ on_comboURL_entry_changed (GtkEditable *editable,
{
if
(
S_ISDIR
(
st
.
st_mode
))
ReadDirectory
(
p_intf
->
p_sys
->
p_clist
,
psz_url
);
// OpenDirectory(p_intf->p_sys->p_clist, psz_url);
else
if
(
(
S_ISLNK
(
st
.
st_mode
))
||
(
S_ISCHR
(
st
.
st_mode
))
||
(
S_ISBLK
(
st
.
st_mode
))
||
(
S_ISFIFO
(
st
.
st_mode
))
||
(
S_ISSOCK
(
st
.
st_mode
))
||
(
S_ISREG
(
st
.
st_mode
))
)
...
...
@@ -551,7 +549,6 @@ on_clistmedia_select_row (GtkCList *clist,
{
if
(
S_ISDIR
(
st
.
st_mode
))
ReadDirectory
(
p_intf
->
p_sys
->
p_clist
,
text
[
0
]);
// OpenDirectory(p_intf->p_sys->p_clist, text[0]);
else
if
(
(
S_ISLNK
(
st
.
st_mode
))
||
(
S_ISCHR
(
st
.
st_mode
))
||
(
S_ISBLK
(
st
.
st_mode
))
||
(
S_ISFIFO
(
st
.
st_mode
))
||
(
S_ISSOCK
(
st
.
st_mode
))
||
(
S_ISREG
(
st
.
st_mode
))
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment