Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
alex037yang
OpenXG-RAN
Commits
3e334165
Commit
3e334165
authored
Apr 11, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix container size allocation
parent
078b4ab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
common/utils/T/tracer/gui/container.c
common/utils/T/tracer/gui/container.c
+4
-2
No files found.
common/utils/T/tracer/gui/container.c
View file @
3e334165
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#define MAX(a, b) ((a)>(b)?(a):(b))
static
void
repack
(
gui
*
g
,
widget
*
_this
)
static
void
repack
(
gui
*
g
,
widget
*
_this
)
{
{
printf
(
"REPACK container %p
\n
"
,
_this
);
printf
(
"REPACK container %p
\n
"
,
_this
);
...
@@ -84,7 +86,7 @@ hints_ok:
...
@@ -84,7 +86,7 @@ hints_ok:
l
->
item
->
hints
(
g
,
l
->
item
,
&
cwidth
,
&
cheight
);
l
->
item
->
hints
(
g
,
l
->
item
,
&
cwidth
,
&
cheight
);
l
->
item
->
allocate
(
g
,
l
->
item
,
this
->
common
.
x
,
this
->
common
.
y
+
cy
,
l
->
item
->
allocate
(
g
,
l
->
item
,
this
->
common
.
x
,
this
->
common
.
y
+
cy
,
//this->hint_width, cheight);
//this->hint_width, cheight);
width
,
cheight
);
MAX
(
width
,
cwidth
)
,
cheight
);
cy
+=
cheight
;
cy
+=
cheight
;
l
=
l
->
next
;
l
=
l
->
next
;
}
}
...
@@ -118,7 +120,7 @@ hints_ok:
...
@@ -118,7 +120,7 @@ hints_ok:
while
(
l
)
{
while
(
l
)
{
l
->
item
->
hints
(
g
,
l
->
item
,
&
cwidth
,
&
cheight
);
l
->
item
->
hints
(
g
,
l
->
item
,
&
cwidth
,
&
cheight
);
l
->
item
->
allocate
(
g
,
l
->
item
,
this
->
common
.
x
+
cx
,
this
->
common
.
y
,
l
->
item
->
allocate
(
g
,
l
->
item
,
this
->
common
.
x
+
cx
,
this
->
common
.
y
,
cwidth
,
this
->
hint_height
);
cwidth
,
MAX
(
height
,
cheight
)
/* this->hint_height */
);
cx
+=
cwidth
;
cx
+=
cwidth
;
l
=
l
->
next
;
l
=
l
->
next
;
}
}
...
...
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