Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e6198f86
Commit
e6198f86
authored
Aug 20, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/gui/familiar/familiar.c: added a timer to check when the
familiar interface is asked to quit.
parent
922ab4d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
modules/gui/familiar/familiar.c
modules/gui/familiar/familiar.c
+23
-2
No files found.
modules/gui/familiar/familiar.c
View file @
e6198f86
...
...
@@ -2,7 +2,7 @@
* familiar.c : familiar plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: familiar.c,v 1.
4 2002/08/18 20:36:04 jpsaman
Exp $
* $Id: familiar.c,v 1.
5 2002/08/20 12:32:01 sam
Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -94,6 +94,7 @@ static int Open ( vlc_object_t * );
static
void
Close
(
vlc_object_t
*
);
static
void
Run
(
intf_thread_t
*
);
static
gint
Manage
(
gpointer
);
/*****************************************************************************
* Module descriptor
...
...
@@ -160,7 +161,7 @@ static void Run( intf_thread_t *p_intf )
char
*
p_args
[]
=
{
""
};
char
**
pp_args
=
p_args
;
int
i_args
=
1
;
int
i_dummy
=
0
;
int
i_dummy
;
/* Initialize Gtk+ */
gtk_set_locale
();
...
...
@@ -202,6 +203,9 @@ static void Run( intf_thread_t *p_intf )
/* Show the control window */
gtk_widget_show
(
p_intf
->
p_sys
->
p_window
);
/* Add a check for termination */
i_dummy
=
gtk_timeout_add
(
INTF_IDLE_SLEEP
/
1000
,
Manage
,
p_intf
);
/* Enter Gtk mode */
gtk_main
();
...
...
@@ -209,3 +213,20 @@ static void Run( intf_thread_t *p_intf )
gtk_timeout_remove
(
i_dummy
);
}
/*****************************************************************************
* Manage: check for termination
*****************************************************************************
* In this function, called approx. 10 times a second, we check whether the
* main program asked us to die by setting b_die to VLC_TRUE.
*****************************************************************************/
static
gint
Manage
(
gpointer
p_data
)
{
if
(
((
intf_thread_t
*
)
p_data
)
->
b_die
)
{
gtk_main_quit
();
return
FALSE
;
}
return
TRUE
;
}
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