Skip to content
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

Tree model sort #777

Merged
merged 4 commits into from Feb 6, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+4 −3
Diff settings

Always

Just for now

Prev

Fix manual code

  • Loading branch information...
GuillaumeGomez committed Feb 5, 2019
commit 07ed902bdbd0a9602d5105000ee3a6f3197abe3f
Copy path View file
@@ -3,7 +3,8 @@
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>

use ffi;
use glib::object::{Downcast, IsA};
use glib::Cast;
use glib::object::IsA;
use glib::translate::*;

use {TreeModel, TreeModelSort};
@@ -14,8 +15,8 @@ impl TreeModelSort {
unsafe {
TreeModel::from_glib_none(
ffi::gtk_tree_model_sort_new_with_model(
child_model.to_glib_none().0)
).downcast_unchecked()
child_model.as_ref().to_glib_none().0)
).unsafe_cast()
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.