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
b478e5fc
Commit
b478e5fc
authored
Apr 20, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/interface.cpp: fit the default size of the interface to the menubar.
parent
bf150e00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+11
-3
No files found.
modules/gui/wxwindows/interface.cpp
View file @
b478e5fc
...
...
@@ -370,6 +370,17 @@ void Interface::CreateOurMenuBar()
/* Attach the menu bar to the frame */
SetMenuBar
(
menubar
);
/* Find out size of menu bar */
int
i_size
=
0
;
for
(
int
i
=
0
;
i
<
menubar
->
GetMenuCount
();
i
++
)
{
int
i_width
,
i_height
;
menubar
->
GetTextExtent
(
menubar
->
GetLabelTop
(
i
),
&
i_width
,
&
i_height
);
i_size
+=
i_width
+
4
/* approximate margin */
;
}
frame_sizer
->
SetMinSize
(
i_size
,
-
1
);
/* Intercept all menu events in our custom event handler */
PushEventHandler
(
new
MenuEvtHandler
(
p_intf
,
this
)
);
...
...
@@ -461,9 +472,6 @@ void Interface::CreateOurToolBar()
toolbar
->
Realize
();
// '7' is the number of buttons on the toolbar, '3' is arbitrary :)
frame_sizer
->
SetMinSize
(
TOOLBAR_BMP_WIDTH
*
7
*
3
,
-
1
);
#if !defined(__WXX11__)
/* Associate drop targets with the toolbar */
toolbar
->
SetDropTarget
(
new
DragAndDrop
(
p_intf
)
);
...
...
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