Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Oblomov
gtk
Commits
b78286ea
Commit
b78286ea
authored
Mar 23, 1998
by
Jay Painter
Browse files
fixed sending null strings to gdk_string_width
parent
dac3ffed
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk/gtkclist.c
View file @
b78286ea
...
...
@@ -2840,9 +2840,18 @@ size_allocate_columns (GtkCList * clist)
gint
width
;
if
(
clist
->
column
[
i
].
width_set
)
width
=
clist
->
column
[
i
].
width
;
{
width
=
clist
->
column
[
i
].
width
;
}
else
width
=
gdk_string_width
(
GTK_WIDGET
(
clist
)
->
style
->
font
,
clist
->
column
[
i
].
title
);
{
if
(
clist
->
column
[
i
].
title
)
width
=
gdk_string_width
(
GTK_WIDGET
(
clist
)
->
style
->
font
,
clist
->
column
[
i
].
title
);
else
width
=
0
;
}
clist
->
column
[
i
].
area
.
width
=
MAX
(
width
,
clist
->
clist_window_width
-
xoffset
-
(
2
*
(
CELL_SPACING
+
COLUMN_INSET
)));
...
...
Write
Preview
Supports
Markdown
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