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
48515f2a
Commit
48515f2a
authored
Dec 15, 2003
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for the fullscreen button state (it is only enabled if a vout is present)
parent
d40cfac2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
11 deletions
+63
-11
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+1
-2
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+3
-2
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+39
-3
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+20
-4
No files found.
modules/gui/macosx/controls.m
View file @
48515f2a
...
...
@@ -2,7 +2,7 @@
* controls.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: controls.m,v 1.5
8 2003/12/11 19:34:47 hartma
n Exp $
* $Id: controls.m,v 1.5
9 2003/12/15 19:25:56 bigbe
n Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -357,7 +357,6 @@
}
else
{
[
o_btn_fullscreen
setState
:
!
[
o_window
isFullscreen
]];
[
o_window
toggleFullscreen
];
}
break
;
...
...
modules/gui/macosx/intf.h
View file @
48515f2a
...
...
@@ -2,7 +2,7 @@
* intf.h: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: intf.h,v 1.5
1 2003/12/11 19:34:47 hartma
n Exp $
* $Id: intf.h,v 1.5
2 2003/12/15 19:25:56 bigbe
n Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -75,6 +75,7 @@ struct intf_sys_t
vlc_bool_t
b_play_status
;
vlc_bool_t
b_playlist_update
;
vlc_bool_t
b_current_title_update
;
vlc_bool_t
b_fullscreen_update
;
/* menus handlers */
vlc_bool_t
b_input_update
;
...
...
modules/gui/macosx/intf.m
View file @
48515f2a
...
...
@@ -2,7 +2,7 @@
* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: intf.m,v 1.10
6 2003/12/15 15:38:26 hartma
n Exp $
* $Id: intf.m,v 1.10
7 2003/12/15 19:25:56 bigbe
n Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -73,6 +73,7 @@ int E_(OpenIntf) ( vlc_object_t *p_this )
[[
VLCApplication
sharedApplication
]
autorelease
];
[
NSApp
setIntf
:
p_intf
];
[
NSBundle
loadNibNamed
:
@"MainMenu"
owner
:
NSApp
];
return
(
0
);
...
...
@@ -615,7 +616,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
while
(
!
p_intf
->
b_die
)
{
playlist_t
*
p_playlist
;
vlc_value_t
val
;
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
...
...
@@ -657,6 +658,15 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
#undef p_input
vlc_object_release
(
p_playlist
);
var_Create
(
p_intf
,
"intf-change"
,
VLC_VAR_BOOL
);
if
(
var_Get
(
p_intf
,
"intf-change"
,
&
val
)
>=
0
&&
val
.
b_bool
)
{
p_intf
->
p_sys
->
b_fullscreen_update
=
TRUE
;
}
val
.
b_bool
=
VLC_FALSE
;
var_Set
(
p_intf
,
"intf-change"
,
val
);
}
vlc_mutex_unlock
(
&
p_intf
->
change_lock
);
...
...
@@ -758,10 +768,36 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
[
o_timefield
setStringValue
:
@"0:00:00"
];
[
self
manageVolumeSlider
];
p_intf
->
p_sys
->
b_intf_update
=
VLC_FALSE
;
}
if
(
p_intf
->
p_sys
->
b_fullscreen_update
)
{
vout_thread_t
*
p_vout
;
vlc_value_t
val
;
p_vout
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_vout
!=
NULL
)
{
if
(
var_Get
(
p_intf
,
"fullscreen"
,
&
val
)
>=
0
&&
val
.
b_bool
)
{
[
o_btn_fullscreen
setState
:
VLC_TRUE
];
}
else
{
[
o_btn_fullscreen
setState
:
VLC_FALSE
];
}
[
o_btn_fullscreen
setEnabled
:
VLC_TRUE
];
vlc_object_release
(
p_vout
);
}
else
{
[
o_btn_fullscreen
setState
:
VLC_FALSE
];
[
o_btn_fullscreen
setEnabled
:
VLC_FALSE
];
}
p_intf
->
p_sys
->
b_fullscreen_update
=
VLC_FALSE
;
}
if
(
p_intf
->
p_sys
->
b_playing
&&
p_input
!=
NULL
)
{
vlc_value_t
time
;
...
...
modules/gui/macosx/vout.m
View file @
48515f2a
...
...
@@ -2,7 +2,7 @@
* vout.m: MacOS X video output plugin
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: vout.m,v 1.6
6 2003/12/08 19:50:22 gbazi
n Exp $
* $Id: vout.m,v 1.6
7 2003/12/15 19:25:56 bigbe
n Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
...
...
@@ -417,6 +417,8 @@ static void vout_Display( vout_thread_t *p_vout, picture_t *p_pic )
static
int
CoSendRequest
(
vout_thread_t
*
p_vout
,
SEL
sel
)
{
int
i_ret
=
0
;
vlc_value_t
val
;
intf_thread_t
*
p_intf
;
VLCVout
*
o_vlv
=
[[
VLCVout
alloc
]
init
];
...
...
@@ -427,6 +429,21 @@ static int CoSendRequest( vout_thread_t *p_vout, SEL sel )
[
o_vlv
release
];
/*This makes this function dependant of the presence of a macosx
interface. We do not check if this interface exists, since it has
already been done before.*/
p_intf
=
[
NSApp
getIntf
];
val
.
b_bool
=
p_vout
->
b_fullscreen
;
var_Create
(
p_intf
,
"fullscreen"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Set
(
p_intf
,
"fullscreen"
,
val
);
val
.
b_bool
=
VLC_TRUE
;
var_Create
(
p_intf
,
"intf-change"
,
VLC_VAR_BOOL
);
var_Set
(
p_intf
,
"intf-change"
,
val
);
return
(
i_ret
);
}
...
...
@@ -482,8 +499,6 @@ static int CoToggleFullscreen( vout_thread_t *p_vout )
p_vout
->
b_fullscreen
=
!
p_vout
->
b_fullscreen
;
config_PutInt
(
p_vout
,
"fullscreen"
,
p_vout
->
b_fullscreen
);
if
(
CoCreateWindow
(
p_vout
)
)
{
msg_Err
(
p_vout
,
"unable to create window"
);
...
...
@@ -1273,6 +1288,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
[
p_vout
->
p_sys
->
o_window
updateTitle
];
[
p_vout
->
p_sys
->
o_window
makeKeyAndOrderFront
:
nil
];
}
-
(
void
)
destroyWindow
:(
NSValue
*
)
o_value
...
...
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