Skip to content

Commit

Permalink
Add TreeView.insertColumn to APILookupGtk.txt (#357)
Browse files Browse the repository at this point in the history
One missing convenience function for adding columns managed by CellRenderer.
  • Loading branch information
ibuclaw authored Jun 23, 2024
1 parent e9f99f6 commit 35fb7ef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/APILookupGtk.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4243,6 +4243,23 @@ code: start
return iters;
}

/**
* Creates a View column containing the CellRenderer, and inserts it
* Params:
* position = The position at which the CellRenderer should be inserted
* title = The text to be used in the title header of this column
* renderer = The CellRenderer
* Returns: number of columns including the new one
*/
int insertColumn(int position, string title, CellRenderer renderer)
{
return gtk_tree_view_insert_column_with_attributes(
gtkTreeView,
position,
Str.toStringz(title),
renderer.getCellRendererStruct(), null);
}

/**
* Inserts a column and sets it's attributes
* Params:
Expand Down

0 comments on commit 35fb7ef

Please sign in to comment.