Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Mar 2, 2024
1 parent 8a16876 commit dc95fb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GLib/listmodel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function show(io::IO, lm::GListModel, t = GListModel)
l=length(lm)
if l>0
screenheight = _get_screenheight(io)
halfheight = div(screenheight,2)
print(io, l)
println(io, "-element $t:")
if l<= screenheight
Expand All @@ -52,6 +51,7 @@ function show(io::IO, lm::GListModel, t = GListModel)
end
end
else
halfheight = div(screenheight,2)
for i in 1:halfheight-1
print(io," ")
println(IOContext(io, :compact=>true), lm[i])
Expand Down
2 changes: 1 addition & 1 deletion src/lists.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function show(io::IO, sl::GtkStringList)
l=length(sl)
if l>0
screenheight = GLib._get_screenheight(io)
halfheight = div(screenheight,2)
print(io, l)
println(io, "-element GtkStringList:")
if l <= screenheight
Expand All @@ -56,6 +55,7 @@ function show(io::IO, sl::GtkStringList)
end
end
else
halfheight = div(screenheight,2)
for i in 1:halfheight-1
print(io," ")
println(IOContext(io, :compact=>true), repr(sl[i]))
Expand Down

0 comments on commit dc95fb9

Please sign in to comment.