On 02/23/2017 07:55 AM, Erdem wrote:
I'd like to port some pygtk example to D. In the example there is a column like this which takes more than one parameter.
renderer_progress = Gtk.CellRendererProgress() column_progress = Gtk.TreeViewColumn("Progress", renderer_progress, value=1, inverted=2)
I may pass one of the parameter value in that case like that.
auto rendererProgress = new CellRendererProgress(); auto columnProgress = new TreeViewColumn("Progress", rendererProgress, "value", 1);
How should one pass the second parameter? (inverted=2) Or should I use a different approach?
The constructor with the variadic parameter is still missing in GtkD.
I think you can use:
columnProgress.addAttribute(rendererProgress, "inverted", 2);