New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeModelFilter and TreeModelSort constructors missing after 3.0.0 upgrade #110

Closed
Hackerpilot opened this Issue Mar 19, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@Hackerpilot

Hackerpilot commented Mar 19, 2015

I managed to work around this, but it's not pretty:

Before:

auto filter = new TreeModelFilter(listStore, null);
auto sortView = new TreeModelSort(filter);

After:

GtkTreeModelFilter* gtkFilter = cast(GtkTreeModelFilter*) gtk_tree_model_filter_new(
    cast(GtkTreeModel*) listStore.getListStoreStruct(), null);
auto filter = new TreeModelFilter(gtkFilter, true);
GtkTreeModelSort* gtkSort = cast(GtkTreeModelSort*) gtk_tree_model_sort_new_with_model(
    cast(GtkTreeModel*) gtkFilter);
auto sortView = new TreeModelSort(gtkSort, true);

@MikeWey MikeWey added the Bug label Mar 20, 2015

@MikeWey MikeWey self-assigned this Mar 20, 2015

@MikeWey MikeWey closed this in 0fff438 Mar 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment