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
a01c11a5
Commit
a01c11a5
authored
Oct 01, 2002
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Playing of files is not working yet! But it is getting closer.
parent
4ffd7b44
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
27 deletions
+86
-27
plugins/familiar/familiar.glade
plugins/familiar/familiar.glade
+15
-0
plugins/familiar/familiar_callbacks.c
plugins/familiar/familiar_callbacks.c
+48
-25
plugins/familiar/familiar_callbacks.h
plugins/familiar/familiar_callbacks.h
+14
-2
plugins/familiar/familiar_interface.c
plugins/familiar/familiar_interface.c
+9
-0
No files found.
plugins/familiar/familiar.glade
View file @
a01c11a5
...
...
@@ -414,6 +414,11 @@ udpstream://@:1234
<width>
54
</width>
<height>
24
</height>
<can_focus>
True
</can_focus>
<signal>
<name>
clicked
</name>
<handler>
on_buttonSave_clicked
</handler>
<last_modification_time>
Tue, 01 Oct 2002 21:12:20 GMT
</last_modification_time>
</signal>
<label>
Save
</label>
<relief>
GTK_RELIEF_NORMAL
</relief>
</widget>
...
...
@@ -426,6 +431,11 @@ udpstream://@:1234
<width>
54
</width>
<height>
24
</height>
<can_focus>
True
</can_focus>
<signal>
<name>
clicked
</name>
<handler>
on_buttonApply_clicked
</handler>
<last_modification_time>
Tue, 01 Oct 2002 21:12:27 GMT
</last_modification_time>
</signal>
<label>
Apply
</label>
<relief>
GTK_RELIEF_NORMAL
</relief>
</widget>
...
...
@@ -438,6 +448,11 @@ udpstream://@:1234
<width>
54
</width>
<height>
24
</height>
<can_focus>
True
</can_focus>
<signal>
<name>
clicked
</name>
<handler>
on_buttonCancel_clicked
</handler>
<last_modification_time>
Tue, 01 Oct 2002 21:12:35 GMT
</last_modification_time>
</signal>
<label>
Cancel
</label>
<relief>
GTK_RELIEF_NORMAL
</relief>
</widget>
...
...
plugins/familiar/familiar_callbacks.c
View file @
a01c11a5
/*****************************************************************************
* callbacks.c : Callbacks for the Familiar Linux Gtk+ plugin.
*
familiar_
callbacks.c : Callbacks for the Familiar Linux Gtk+ plugin.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: familiar_callbacks.c,v 1.6.2.
3 2002/10/01 19:46:47
jpsaman Exp $
* $Id: familiar_callbacks.c,v 1.6.2.
4 2002/10/01 21:17:52
jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -99,32 +99,23 @@ void * __GtkGetIntf( GtkWidget * widget )
****************************************************************************/
static
void
MediaURLOpenChanged
(
GtkWidget
*
widget
,
gchar
*
psz_url
)
{
intf_thread_t
*
p_intf
=
GtkGetIntf
(
widget
);
// intf_thread_t *p_intf = GtkGetIntf( widget );
int
i_end
=
p_main
->
p_playlist
->
i_size
;
intf_ErrMsg
(
"@@@ MediaURLOpenChanged"
);
g_print
(
"%s
\n
"
,
psz_url
);
if
(
p_
intf
->
p_sys
->
p_input
!=
NULL
)
// Add p_url to playlist .... but how ?
if
(
p_
main
->
p_playlist
)
{
input_SetStatus
(
p_intf
->
p_sys
->
p_input
,
INPUT_STATUS_PLAY
);
p_main
->
p_playlist
->
b_stopped
=
0
;
intf_PlaylistAdd
(
p_main
->
p_playlist
,
PLAYLIST_END
,
(
char
*
)
psz_url
);
}
else
/* end current item, select added item */
if
(
p_input_bank
->
pp_input
[
0
]
!=
NULL
)
{
vlc_mutex_lock
(
&
p_main
->
p_playlist
->
change_lock
);
if
(
p_main
->
p_playlist
->
b_stopped
)
{
if
(
p_main
->
p_playlist
->
i_size
)
{
vlc_mutex_unlock
(
&
p_main
->
p_playlist
->
change_lock
);
intf_PlaylistJumpto
(
p_main
->
p_playlist
,
p_main
->
p_playlist
->
i_index
);
}
}
else
{
vlc_mutex_unlock
(
&
p_main
->
p_playlist
->
change_lock
);
}
p_input_bank
->
pp_input
[
0
]
->
b_eof
=
1
;
}
intf_PlaylistJumpto
(
p_main
->
p_playlist
,
i_end
-
1
);
}
/*****************************************************************
...
...
@@ -137,7 +128,6 @@ void ReadDirectory( GtkCList *clist, char *psz_dir )
int
n
=-
1
;
int
status
=-
1
;
intf_ErrMsg
(
"@@@ ReadDirectory - Enter"
);
if
(
psz_dir
)
{
status
=
chdir
(
psz_dir
);
...
...
@@ -156,7 +146,6 @@ void ReadDirectory( GtkCList *clist, char *psz_dir )
gtk_clist_freeze
(
p_intf
->
p_sys
->
p_clist
);
gtk_clist_clear
(
p_intf
->
p_sys
->
p_clist
);
g_print
(
"dir entries: %d
\n
"
,
n
);
for
(
i
=
0
;
i
<
n
;
i
++
)
{
/* This is a list of strings. */
...
...
@@ -170,7 +159,6 @@ void ReadDirectory( GtkCList *clist, char *psz_dir )
gtk_clist_thaw
(
p_intf
->
p_sys
->
p_clist
);
free
(
namelist
);
}
intf_ErrMsg
(
"@@@ ReadDirectory - Exit"
);
}
static
char
*
get_file_perm
(
const
char
*
path
)
...
...
@@ -533,3 +521,38 @@ on_clistmedia_enter_notify_event (GtkWidget *widget,
return
FALSE
;
}
void
on_buttonSave_clicked
(
GtkButton
*
button
,
gpointer
user_data
)
{
on_buttonApply_clicked
(
button
,
user_data
);
config_SaveConfigFile
(
NULL
);
}
void
on_buttonApply_clicked
(
GtkButton
*
button
,
gpointer
user_data
)
{
// GHashTable *hash_table;
// GtkWidget *apply_button;
//
// hash_table = (GHashTable *)gtk_object_get_data( GTK_OBJECT(user_data),
// "config_hash_table" );
// g_hash_table_foreach_remove( hash_table, GtkSaveHashValue, NULL );
//
// /* change the highlight status of the Apply button */
// apply_button = (GtkWidget *)gtk_object_get_data( GTK_OBJECT(user_data),
// "apply_button" );
// gtk_widget_set_sensitive( apply_button, FALSE );
}
void
on_buttonCancel_clicked
(
GtkButton
*
button
,
gpointer
user_data
)
{
//gtk_widget_destroy( gtk_widget_get_toplevel( GTK_WIDGET (button) ) );
}
plugins/familiar/familiar_callbacks.h
View file @
a01c11a5
/*****************************************************************************
* callbacks.h : familiar plugin for vlc
*
familiar_
callbacks.h : familiar plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: familiar_callbacks.h,v 1.7.2.
3 2002/10/01 19:46:47
jpsaman Exp $
* $Id: familiar_callbacks.h,v 1.7.2.
4 2002/10/01 21:17:52
jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -100,3 +100,15 @@ gboolean
on_clistmedia_enter_notify_event
(
GtkWidget
*
widget
,
GdkEventCrossing
*
event
,
gpointer
user_data
);
void
on_buttonSave_clicked
(
GtkButton
*
button
,
gpointer
user_data
);
void
on_buttonApply_clicked
(
GtkButton
*
button
,
gpointer
user_data
);
void
on_buttonCancel_clicked
(
GtkButton
*
button
,
gpointer
user_data
);
plugins/familiar/familiar_interface.c
View file @
a01c11a5
...
...
@@ -498,6 +498,15 @@ create_familiar (void)
gtk_signal_connect
(
GTK_OBJECT
(
clistmedia
),
"enter_notify_event"
,
GTK_SIGNAL_FUNC
(
on_clistmedia_enter_notify_event
),
NULL
);
gtk_signal_connect
(
GTK_OBJECT
(
buttonSave
),
"clicked"
,
GTK_SIGNAL_FUNC
(
on_buttonSave_clicked
),
NULL
);
gtk_signal_connect
(
GTK_OBJECT
(
buttonApply
),
"clicked"
,
GTK_SIGNAL_FUNC
(
on_buttonApply_clicked
),
NULL
);
gtk_signal_connect
(
GTK_OBJECT
(
buttonCancel
),
"clicked"
,
GTK_SIGNAL_FUNC
(
on_buttonCancel_clicked
),
NULL
);
gtk_signal_connect
(
GTK_OBJECT
(
cbautoplay
),
"toggled"
,
GTK_SIGNAL_FUNC
(
on_cbautoplay_toggled
),
NULL
);
...
...
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