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
bcfc1800
Commit
bcfc1800
authored
Apr 21, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix 'toggle-sidebar' menu state (close #8213)
parent
10bd3be0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
14 deletions
+7
-14
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+0
-3
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+7
-8
modules/gui/macosx/macosx.m
modules/gui/macosx/macosx.m
+0
-3
No files found.
modules/gui/macosx/MainMenu.m
View file @
bcfc1800
...
...
@@ -714,10 +714,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
-
(
IBAction
)
toggleSidebar
:(
id
)
sender
{
BOOL
b_value
=
!
config_GetInt
(
VLCIntf
,
"macosx-show-sidebar"
);
config_PutInt
(
VLCIntf
,
"macosx-show-sidebar"
,
b_value
);
[[[
VLCMain
sharedInstance
]
mainWindow
]
toggleLeftSubSplitView
];
[
o_mi_toggleSidebar
setState
:
b_value
];
}
-
(
void
)
updateSidebarMenuItem
...
...
modules/gui/macosx/MainWindow.m
View file @
bcfc1800
...
...
@@ -190,11 +190,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
self
setExcludedFromWindowsMenu
:
YES
];
[
self
setAcceptsMouseMovedEvents
:
YES
];
// Set that here as IB seems to be buggy
if
(
b_dark_interface
)
{
if
(
b_dark_interface
)
[
self
setContentMinSize
:
NSMakeSize
(
604
.,
288
.
+
[
o_titlebar_view
frame
].
size
.
height
)];
}
else
{
else
[
self
setContentMinSize
:
NSMakeSize
(
604
.,
288
.)];
}
[
self
setTitle
:
_NS
(
"VLC media player"
)];
...
...
@@ -356,7 +355,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
o_color_backdrop
=
[[
VLCColorView
alloc
]
initWithFrame
:
[
o_split_view
frame
]];
[[
self
contentView
]
addSubview
:
o_color_backdrop
positioned
:
NSWindowBelow
relativeTo
:
o_split_view
];
[
o_color_backdrop
setAutoresizingMask
:
NSViewHeightSizable
|
NSViewWidthSizable
];
}
else
{
[
o_video_view
setFrame
:
[
o_split_view
frame
]];
[
o_playlist_table
setBorderType
:
NSNoBorder
];
...
...
@@ -366,7 +364,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
someWindowWillClose
:
)
name
:
NSWindowWillCloseNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
someWindowWillMiniaturize
:
)
name
:
NSWindowWillMiniaturizeNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
applicationWillTerminate
:
)
name
:
NSApplicationWillTerminateNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
mainSplitViewWillResizeSubviews
:
)
name
:
NSSplitViewWill
ResizeSubviewsNotification
object
:
o_split_view
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
mainSplitViewDidResizeSubviews
:
)
name
:
NSSplitViewDid
ResizeSubviewsNotification
object
:
o_split_view
];
if
(
b_splitviewShouldBeHidden
)
{
[
self
hideSplitView
];
...
...
@@ -856,7 +854,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
return
YES
;
}
-
(
void
)
mainSplitView
Will
ResizeSubviews
:(
id
)
object
-
(
void
)
mainSplitView
Did
ResizeSubviews
:(
id
)
object
{
i_lastLeftSplitViewWidth
=
[
o_left_split_view
frame
].
size
.
width
;
config_PutInt
(
VLCIntf
,
"macosx-show-sidebar"
,
!
[
o_split_view
isSubviewCollapsed
:
o_left_split_view
]);
...
...
@@ -870,6 +868,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
o_split_view
setPosition
:
i_lastLeftSplitViewWidth
ofDividerAtIndex
:
0
];
else
[
o_split_view
setPosition
:[
o_split_view
minPossiblePositionOfDividerAtIndex
:
0
]
ofDividerAtIndex
:
0
];
[[[
VLCMain
sharedInstance
]
mainMenu
]
updateSidebarMenuItem
];
}
#pragma mark -
...
...
modules/gui/macosx/macosx.m
View file @
bcfc1800
...
...
@@ -147,7 +147,6 @@ vlc_module_begin()
add_bool("macosx-show-playback-buttons", false, JUMPBUTTONS_TEXT, JUMPBUTTONS_LONGTEXT, false)
add_bool("macosx-show-playmode-buttons", true, PLAYMODEBUTTONS_TEXT, PLAYMODEBUTTONS_LONGTEXT, false)
add_bool("macosx-show-effects-button", false, EFFECTSBUTTON_TEXT, EFFECTSBUTTON_LONGTEXT, false)
add_bool("macosx-show-sidebar", true, SIDEBAR_TEXT, SIDEBAR_LONGTEXT, false)
set_section(N_("Behaviour"), 0)
...
...
@@ -160,14 +159,12 @@ vlc_module_begin()
add_integer("macosx-control-itunes", 1, ITUNES_TEXT, ITUNES_LONGTEXT, false)
change_integer_list(itunes_list, itunes_list_text)
set_section(N_("Apple Remote and media keys"), 0)
add_bool("macosx-appleremote", true, USE_APPLE_REMOTE_TEXT, USE_APPLE_REMOTE_LONGTEXT, false)
add_bool("macosx-appleremote-sysvol", false, USE_APPLE_REMOTE_VOLUME_TEXT, USE_APPLE_REMOTE_VOLUME_LONGTEXT, false)
add_bool("macosx-appleremote-prevnext", false, USE_APPLE_REMOTE_PREVNEXT_TEXT, USE_APPLE_REMOTE_PREVNEXT_LONGTEXT, false)
add_bool("macosx-mediakeys", true, USE_MEDIAKEYS_TEXT, USE_MEDIAKEYS_LONGTEXT, false)
add_obsolete_bool("macosx-stretch") /* since 2.0.0 */
add_obsolete_bool("macosx-eq-keep") /* since 2.0.0 */
add_obsolete_bool("macosx-autosave-volume") /* since 2.1.0 */
...
...
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