Skip to content

Commit

Permalink
Fix #1617
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunn1 committed Jan 2, 2019
1 parent cd76b8c commit 2f965ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/gx/tilix/sidebar.d
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,15 @@ public:
SideBarRow[] rows = gx.gtk.util.getChildren!SideBarRow(lbSessions, false);

ulong maxSessions = min(rows.length, sessions.length);
for (ulong i; i < maxSessions; i++) {
for (size_t i; i < maxSessions; i++) {
rows[i].updateUI(sessions[i], notifications, width, height);
if (sessions[i].uuid == currentSessionUUID) {
lbSessions.selectRow(rows[i]);
}
}

if (rows.length > sessions.length) {
for (ulong i = sessions.length; i < rows.length; i++ ) {
for (size_t i = sessions.length; i < rows.length; i++ ) {
SideBarRow row = rows[i];
lbSessions.remove(row);

Expand All @@ -375,7 +375,7 @@ public:
row.destroy();
}
} else {
for (ulong i = rows.length; i < sessions.length; i++) {
for (size_t i = rows.length; i < sessions.length; i++) {
SideBarRow row = new SideBarRow(this, sessions[i], notifications, width, height);
row.sessionIndex = i + 1;
lbSessions.add(row);
Expand Down Expand Up @@ -470,8 +470,8 @@ private:
EventBox evNotification;
AspectFrame afNotification;

long[] ebEventHandlerId;
long closeButtonHandler;
size_t[] ebEventHandlerId;
size_t closeButtonHandler;

bool isRootWindow = false;

Expand Down

0 comments on commit 2f965ef

Please sign in to comment.