X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Ftreemodel.cpp;h=9e1f20cfbd202abfb6053fd7677f77d362044845;hb=c52a4bd4da209e657018e8d799dcb488cd848e4c;hp=d36e492a753077eeba8e26cfe67f526d7bb0f58a;hpb=d347e813d359c2c4c9fc72aaa25aec2e078a8390;p=xonotic%2Fnetradiant.git diff --git a/radiant/treemodel.cpp b/radiant/treemodel.cpp index d36e492a..9e1f20cf 100644 --- a/radiant/treemodel.cpp +++ b/radiant/treemodel.cpp @@ -24,9 +24,8 @@ #include "debugging/debugging.h" #include -#include -#include -#include +#include +#include #include "iscenegraph.h" #include "nameable.h" @@ -280,7 +279,7 @@ static GtkTreePath* graph_tree_model_get_path( GtkTreeModel* tree_model, GtkTree graph_type& graph = *GRAPH_TREE_MODEL( tree_model )->graph; graph_type::iterator i = graph_iterator_read_tree_iter( iter ); - GtkTreePath* path = gtk_tree_path_new(); + GtkTreePath* path = ui::TreePath(); for ( std::size_t depth = ( *i ).first.get().size(); depth != 0; --depth ) { @@ -882,7 +881,7 @@ static GtkTreePath* graph_tree_model_get_path( GtkTreeModel* tree_model, GtkTree ASSERT_MESSAGE( tree_model != 0, "RUNTIME ERROR" ); GraphTreeNode* graph = GRAPH_TREE_MODEL( tree_model )->m_graph; - GtkTreePath* path = gtk_tree_path_new(); + GtkTreePath* path = ui::TreePath(); for ( GraphTreeNode* node = ( *graph_iterator_read_tree_iter( iter ) ).second; node != graph; node = node->m_parent ) { @@ -1369,7 +1368,7 @@ TestGraphTreeModel(){ { GtkTreeIter iter; - GtkTreePath* path = gtk_tree_path_new_from_string( "0" ); + GtkTreePath* path = ui::TreePath( "0" ); gtk_tree_model_get_iter( model, &iter, path ); gtk_tree_path_free( path ); @@ -1379,7 +1378,7 @@ TestGraphTreeModel(){ { GtkTreeIter iter; - GtkTreePath* path = gtk_tree_path_new_from_string( "1" ); + GtkTreePath* path = ui::TreePath( "1" ); gtk_tree_model_get_iter( model, &iter, path ); gtk_tree_path_free( path );