Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
4e939d80
Commit
4e939d80
authored
May 07, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward-port and adapt [15500]
parent
9ac8ebb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
modules/gui/wxwidgets/menus.cpp
modules/gui/wxwidgets/menus.cpp
+17
-5
src/interface/interface.c
src/interface/interface.c
+2
-0
No files found.
modules/gui/wxwidgets/menus.cpp
View file @
4e939d80
...
@@ -59,7 +59,7 @@ public:
...
@@ -59,7 +59,7 @@ public:
private:
private:
wxMenu
*
CreateDummyMenu
();
wxMenu
*
CreateDummyMenu
();
void
CreateMenuItem
(
wxMenu
*
,
char
*
,
vlc_object_t
*
);
void
CreateMenuItem
(
wxMenu
*
,
c
onst
c
har
*
,
vlc_object_t
*
);
wxMenu
*
CreateChoicesMenu
(
char
*
,
vlc_object_t
*
,
bool
);
wxMenu
*
CreateChoicesMenu
(
char
*
,
vlc_object_t
*
,
bool
);
DECLARE_EVENT_TABLE
();
DECLARE_EVENT_TABLE
();
...
@@ -192,7 +192,8 @@ int AudioAutoMenuBuilder( vlc_object_t *p_object,
...
@@ -192,7 +192,8 @@ int AudioAutoMenuBuilder( vlc_object_t *p_object,
}
}
int
IntfAutoMenuBuilder
(
intf_thread_t
*
p_intf
,
int
IntfAutoMenuBuilder
(
intf_thread_t
*
p_intf
,
vector
<
int
>
&
ri_objects
,
vector
<
string
>
&
rs_varnames
)
vector
<
int
>
&
ri_objects
,
vector
<
string
>
&
rs_varnames
,
bool
is_popup
)
{
{
/* vlc_object_find is needed because of the dialogs provider case */
/* vlc_object_find is needed because of the dialogs provider case */
vlc_object_t
*
p_object
;
vlc_object_t
*
p_object
;
...
@@ -200,6 +201,14 @@ int IntfAutoMenuBuilder( intf_thread_t *p_intf,
...
@@ -200,6 +201,14 @@ int IntfAutoMenuBuilder( intf_thread_t *p_intf,
FIND_PARENT
);
FIND_PARENT
);
if
(
p_object
!=
NULL
)
if
(
p_object
!=
NULL
)
{
{
if
(
is_popup
)
{
#ifndef WIN32
PUSH_VAR
(
"intf-switch"
);
#endif
}
else
PUSH_VAR
(
"intf-switch"
);
PUSH_VAR
(
"intf-add"
);
PUSH_VAR
(
"intf-add"
);
PUSH_VAR
(
"intf-skins"
);
PUSH_VAR
(
"intf-skins"
);
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
...
@@ -328,7 +337,7 @@ void MiscPopupMenu( intf_thread_t *p_intf, wxWindow *p_parent,
...
@@ -328,7 +337,7 @@ void MiscPopupMenu( intf_thread_t *p_intf, wxWindow *p_parent,
InputAutoMenuBuilder
(
VLC_OBJECT
(
p_input
),
ai_objects
,
as_varnames
);
InputAutoMenuBuilder
(
VLC_OBJECT
(
p_input
),
ai_objects
,
as_varnames
);
PUSH_SEPARATOR
;
PUSH_SEPARATOR
;
}
}
IntfAutoMenuBuilder
(
p_intf
,
ai_objects
,
as_varnames
);
IntfAutoMenuBuilder
(
p_intf
,
ai_objects
,
as_varnames
,
true
);
Menu
popupmenu
(
p_intf
,
PopupMenu_Events
);
Menu
popupmenu
(
p_intf
,
PopupMenu_Events
);
popupmenu
.
Populate
(
as_varnames
,
ai_objects
);
popupmenu
.
Populate
(
as_varnames
,
ai_objects
);
...
@@ -381,7 +390,7 @@ void PopupMenu( intf_thread_t *p_intf, wxWindow *p_parent,
...
@@ -381,7 +390,7 @@ void PopupMenu( intf_thread_t *p_intf, wxWindow *p_parent,
/* Interface menu */
/* Interface menu */
PUSH_SEPARATOR
PUSH_SEPARATOR
IntfAutoMenuBuilder
(
p_intf
,
ai_objects
,
as_varnames
);
IntfAutoMenuBuilder
(
p_intf
,
ai_objects
,
as_varnames
,
true
);
/* Build menu */
/* Build menu */
Menu
popupmenu
(
p_intf
,
PopupMenu_Events
);
Menu
popupmenu
(
p_intf
,
PopupMenu_Events
);
...
@@ -509,6 +518,7 @@ wxMenu *SettingsMenu( intf_thread_t *_p_intf, wxWindow *p_parent,
...
@@ -509,6 +518,7 @@ wxMenu *SettingsMenu( intf_thread_t *_p_intf, wxWindow *p_parent,
FIND_PARENT
);
FIND_PARENT
);
if
(
p_object
!=
NULL
)
if
(
p_object
!=
NULL
)
{
{
PUSH_VAR
(
"intf-switch"
);
PUSH_VAR
(
"intf-add"
);
PUSH_VAR
(
"intf-add"
);
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
}
}
...
@@ -632,6 +642,8 @@ static bool IsMenuEmpty( char *psz_var, vlc_object_t *p_object,
...
@@ -632,6 +642,8 @@ static bool IsMenuEmpty( char *psz_var, vlc_object_t *p_object,
if
(
(
i_type
&
VLC_VAR_TYPE
)
!=
VLC_VAR_VARIABLE
)
if
(
(
i_type
&
VLC_VAR_TYPE
)
!=
VLC_VAR_VARIABLE
)
{
{
/* Very evil hack ! intf-switch can have only one value */
if
(
!
strcmp
(
psz_var
,
"intf-switch"
)
)
return
FALSE
;
if
(
val
.
i_int
==
1
&&
b_root
)
return
TRUE
;
if
(
val
.
i_int
==
1
&&
b_root
)
return
TRUE
;
else
return
FALSE
;
else
return
FALSE
;
}
}
...
@@ -658,7 +670,7 @@ static bool IsMenuEmpty( char *psz_var, vlc_object_t *p_object,
...
@@ -658,7 +670,7 @@ static bool IsMenuEmpty( char *psz_var, vlc_object_t *p_object,
return
i_result
;
return
i_result
;
}
}
void
Menu
::
CreateMenuItem
(
wxMenu
*
menu
,
char
*
psz_var
,
void
Menu
::
CreateMenuItem
(
wxMenu
*
menu
,
c
onst
c
har
*
psz_var
,
vlc_object_t
*
p_object
)
vlc_object_t
*
p_object
)
{
{
wxMenuItemExt
*
menuitem
;
wxMenuItemExt
*
menuitem
;
...
...
src/interface/interface.c
View file @
4e939d80
...
@@ -329,7 +329,9 @@ static void RunInterface( intf_thread_t *p_intf )
...
@@ -329,7 +329,9 @@ static void RunInterface( intf_thread_t *p_intf )
static
char
*
ppsz_interfaces
[]
=
static
char
*
ppsz_interfaces
[]
=
{
{
"skins2"
,
"Skins 2"
,
"skins2"
,
"Skins 2"
,
#ifndef WIN32
"wxwidgets"
,
"wxWidgets"
,
"wxwidgets"
,
"wxWidgets"
,
#endif
NULL
,
NULL
NULL
,
NULL
};
};
char
**
ppsz_parser
;
char
**
ppsz_parser
;
...
...
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