We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6367410 commit 92ddd6bCopy full SHA for 92ddd6b
Sources/Gtk/Widgets/ListBox+ManualAdditions.swift
@@ -6,12 +6,10 @@ extension ListBox {
6
}
7
8
public func removeAll() {
9
- var index = 0
10
- while let row = gtk_list_box_get_row_at_index(opaquePointer, gint(index)) {
+ while let row = gtk_list_box_get_row_at_index(opaquePointer, 0) {
11
gtk_list_box_row_set_child(row, nil)
12
- index += 1
+ gtk_list_box_remove(opaquePointer, row.cast())
13
14
- gtk_list_box_remove_all(opaquePointer)
15
16
17
/// Returns `true` on success.
0 commit comments