Hi
var search_entry = new Gtk.SearchEntry ();
search_entry.set_name("GridEntry");
var sfilter = new Gtk.StringFilter (new Gtk.PropertyExpression (typeof (ItemPoets), null, "name"));
var filter = Gtk.Filter (sfilter);
filter.set_match_mode (Gtk.StringFilterMatchMode.PREFIX);
filter.set_ignore_case(true);
var filter_model = new Gtk.FilterListModel (single_selection, filter);
filter_model.set_incremental(true);
//filter.set_search ("test");
filter.changed(Gtk.FilterChange.DIFFERENT);
search_entry.bind_property ("text", filter, "search", 0);
if I write: var filter = Gtk.Filter (sfilter);
error: use `new’ operator to create new objects
if I write: var filter = new Gtk.Filter (sfilter);
error: Access to non-public constructor `Gtk.Filter.new’
Does anyone guide me how to do this?