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
402e44d0
Commit
402e44d0
authored
Mar 08, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove intf_UserYesNo
parent
f5930fff
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
60 deletions
+1
-60
include/vlc_interface.h
include/vlc_interface.h
+0
-2
modules/gui/qt4/dialogs/interaction.cpp
modules/gui/qt4/dialogs/interaction.cpp
+0
-10
src/interface/interaction.c
src/interface/interaction.c
+1
-47
src/libvlccore.sym
src/libvlccore.sym
+0
-1
No files found.
include/vlc_interface.h
View file @
402e44d0
...
...
@@ -279,8 +279,6 @@ enum
* Exported symbols
***************************************************************************/
#define intf_UserYesNo( a, b, c, d, e, f ) __intf_UserYesNo( VLC_OBJECT(a),b,c, d, e, f )
VLC_EXPORT
(
int
,
__intf_UserYesNo
,(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
const
char
*
,
const
char
*
,
const
char
*
)
);
#define intf_UserStringInput( a, b, c, d ) __intf_UserStringInput( VLC_OBJECT(a),b,c,d )
VLC_EXPORT
(
int
,
__intf_UserStringInput
,(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
char
**
)
);
...
...
modules/gui/qt4/dialogs/interaction.cpp
View file @
402e44d0
...
...
@@ -86,16 +86,6 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
progressBar
->
setOrientation
(
Qt
::
Horizontal
);
layout
->
addWidget
(
progressBar
);
}
else
if
(
p_dialog
->
i_flags
&
DIALOG_PSZ_INPUT_OK_CANCEL
)
{
dialog
=
new
QWidget
;
layout
=
new
QVBoxLayout
(
dialog
);
layout
->
setMargin
(
2
);
description
=
new
QLabel
(
qfu
(
p_dialog
->
psz_description
)
);
layout
->
addWidget
(
description
);
inputEdit
=
new
QLineEdit
;
layout
->
addWidget
(
inputEdit
);
}
else
{
msg_Err
(
p_intf
,
"Unknown dialog type %i"
,
p_dialog
->
i_flags
);
...
...
src/interface/interaction.c
View file @
402e44d0
...
...
@@ -83,50 +83,6 @@ static int DialogSend( interaction_dialog_t * );
p_new->psz_returned[0] = NULL; \
p_new->psz_returned[1] = NULL
#define FORMAT_DESC \
va_start( args, psz_format ); \
if( vasprintf( &p_new->psz_description, psz_format, args ) == -1 ) \
return VLC_EGENERIC; \
va_end( args )
static
inline
int
DialogFireForget
(
interaction_dialog_t
*
d
)
{
int
ret
=
DialogSend
(
d
);
if
(
ret
==
VLC_EGENERIC
)
DialogDestroy
(
d
);
return
ret
;
}
/**
* Helper function to ask a yes-no-cancel question
*
* \param p_this Parent vlc_object
* \param psz_title Title for the dialog
* \param psz_description A description
* \param psz_default caption for the default button
* \param psz_alternate caption for the alternate button
* \param psz_other caption for the optional 3rd button (== cancel)
* \return Clicked button code
*/
int
__intf_UserYesNo
(
vlc_object_t
*
p_this
,
const
char
*
psz_title
,
const
char
*
psz_description
,
const
char
*
psz_default
,
const
char
*
psz_alternate
,
const
char
*
psz_other
)
{
DIALOG_INIT
(
TWOWAY
,
VLC_EGENERIC
);
p_new
->
psz_title
=
strdup
(
psz_title
);
p_new
->
psz_description
=
strdup
(
psz_description
);
p_new
->
i_flags
=
DIALOG_YES_NO_CANCEL
;
p_new
->
psz_default_button
=
strdup
(
psz_default
);
p_new
->
psz_alternate_button
=
strdup
(
psz_alternate
);
p_new
->
psz_other_button
=
psz_other
?
strdup
(
psz_other
)
:
NULL
;
return
DialogFireForget
(
p_new
);
}
/**
* Helper function to create a dialogue showing a progress-bar with some info
*
...
...
@@ -391,9 +347,7 @@ static void DialogDestroy( interaction_dialog_t *p_dialog )
{
free
(
p_dialog
->
psz_title
);
free
(
p_dialog
->
psz_description
);
free
(
p_dialog
->
psz_default_button
);
free
(
p_dialog
->
psz_alternate_button
);
free
(
p_dialog
->
psz_other_button
);
vlc_object_release
(
p_dialog
->
p_parent
);
free
(
p_dialog
);
}
...
...
@@ -406,7 +360,7 @@ static int DialogSend( interaction_dialog_t *p_dialog )
intf_thread_t
*
p_intf
;
if
(
(
p_dialog
->
p_parent
->
i_flags
&
OBJECT_FLAGS_NOINTERACT
)
||
!
config_GetInt
(
p_
interaction
,
"interact"
)
)
||
!
config_GetInt
(
p_
dialog
->
p_parent
,
"interact"
)
)
return
VLC_EGENERIC
;
p_interaction
=
InteractionGet
(
p_dialog
->
p_parent
);
...
...
src/libvlccore.sym
View file @
402e44d0
...
...
@@ -202,7 +202,6 @@ intf_RunThread
intf_StopThread
intf_UserHide
__intf_UserStringInput
__intf_UserYesNo
IsUTF8
libvlc_InternalAddIntf
libvlc_InternalCleanup
...
...
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