Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e6ed0117
Commit
e6ed0117
authored
Apr 20, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/interface.cpp: better interface size under gtk.
parent
b478e5fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+7
-3
No files found.
modules/gui/wxwindows/interface.cpp
View file @
e6ed0117
...
...
@@ -372,13 +372,17 @@ void Interface::CreateOurMenuBar()
/* Find out size of menu bar */
int
i_size
=
0
;
for
(
int
i
=
0
;
i
<
menubar
->
GetMenuCount
();
i
++
)
for
(
unsigned
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 */
;
i_size
+=
i_width
+
#if defined(__WXGTK__)
20
/* approximate margin */
;
#else
4
/* approximate margin */
;
#endif
}
frame_sizer
->
SetMinSize
(
i_size
,
-
1
);
/* Intercept all menu events in our custom event handler */
...
...
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