Skip to content

Commit

Permalink
Sync with development branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhx committed Jul 29, 2023
1 parent 2f6e16a commit ea071c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Sources/Gtk/Box.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public extension BoxProtocol {
///
/// - Parameter marginStart: start margin

@inlinable func set(marginStart: Int) { setMarginStart(margin: CInt(marginStart)) }
@inlinable func set(marginStart: Int) { setMarginStart(margin: marginStart) }
/// Set the end margin of the box
///
/// - Parameter marginEnd: end margin
@inlinable func set(marginEnd: Int) { setMarginEnd(margin: CInt(marginEnd)) }
@inlinable func set(marginEnd: Int) { setMarginEnd(margin: marginEnd) }
}

4 changes: 2 additions & 2 deletions Sources/Gtk/ListStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public extension ListStore {
/// - Parameter types: array of column types for this list model
@available(*, deprecated) @inlinable convenience init(types: [GType]) {
var ts = types
self.init(nColumns: CInt(types.count), types: &ts)
self.init(nColumns: types.count, types: &ts)
}

/// Convenience constructor specifying the list column types
Expand All @@ -27,7 +27,7 @@ public extension ListStore {
/// - Parameter types: column types for this list model
@inlinable convenience init(_ types: GType...) {
var ts = types
self.init(nColumns: CInt(types.count), types: &ts)
self.init(nColumns: types.count, types: &ts)
}

/// Set the given values for the current row
Expand Down
6 changes: 3 additions & 3 deletions Sources/Gtk/TreeStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public extension TreeStore {
/// - Parameter types: array of column types for this tree model
@available(*, deprecated) @inlinable convenience init(types: [GType]) {
var ts = types
self.init(nColumns: CInt(types.count), types: &ts)
self.init(nColumns: types.count, types: &ts)
}

/// Convenience constructor specifying the column types
Expand All @@ -32,7 +32,7 @@ public extension TreeStore {
/// - Parameter types: column types for this tree model
@available(*, deprecated) @inlinable convenience init(_ types: GType...) {
var ts = types
self.init(nColumns: CInt(types.count), types: &ts)
self.init(nColumns: types.count, types: &ts)
}

/// Set the given values for the current row
Expand Down Expand Up @@ -163,7 +163,7 @@ public extension TreeViewColumn {
renderer.setProperty(propertyName: a.0.name, value: a.1)
}
packStart(cell: renderer, expand: e)
addAttribute(cellRenderer: renderer, attribute: attribute.name, column: CInt(column))
addAttribute(cellRenderer: renderer, attribute: attribute.name, column: column)
}

/// Convenience constructor for setting up a tree or list view column
Expand Down

0 comments on commit ea071c4

Please sign in to comment.