From dc95fb964e2e788d5f7c07d71cbd2d7b996fe4e9 Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Sat, 2 Mar 2024 16:51:41 -0500 Subject: [PATCH] minor cleanup --- src/GLib/listmodel.jl | 2 +- src/lists.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GLib/listmodel.jl b/src/GLib/listmodel.jl index b7579910..bfc2006f 100644 --- a/src/GLib/listmodel.jl +++ b/src/GLib/listmodel.jl @@ -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 @@ -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]) diff --git a/src/lists.jl b/src/lists.jl index 9bcd52b2..6313efd1 100644 --- a/src/lists.jl +++ b/src/lists.jl @@ -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 @@ -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]))