[planner] Remove deprecated gtk_tree_path_new_root.



commit ec0409e7ef1994c66c7562f70e968d0ff0bee0b0
Author: Luis Menina <liberforce freeside fr>
Date:   Sat Mar 2 22:11:56 2013 +0100

    Remove deprecated gtk_tree_path_new_root.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=575129

 src/planner-gantt-chart.c |    2 +-
 src/planner-gantt-model.c |    2 +-
 src/planner-usage-chart.c |    2 +-
 src/planner-usage-model.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/planner-gantt-chart.c b/src/planner-gantt-chart.c
index fe57100..289fd15 100644
--- a/src/planner-gantt-chart.c
+++ b/src/planner-gantt-chart.c
@@ -880,7 +880,7 @@ gantt_chart_build_tree (PlannerGanttChart *chart)
        GtkTreePath *path;
        GHashTable  *hash;
 
-       path = gtk_tree_path_new_root ();
+       path = gtk_tree_path_new_first ();
        if (!gtk_tree_model_get_iter (chart->priv->model, &iter, path)) {
                gtk_tree_path_free (path);
                return;
diff --git a/src/planner-gantt-model.c b/src/planner-gantt-model.c
index a0703bd..1e7b7e0 100644
--- a/src/planner-gantt-model.c
+++ b/src/planner-gantt-model.c
@@ -707,7 +707,7 @@ gantt_model_get_path_from_node (PlannerGanttModel *model,
        parent = node->parent;
 
        if (parent == NULL && node == model->priv->tree) {
-               return gtk_tree_path_new_root ();
+               return gtk_tree_path_new_first ();
        }
 
        g_assert (parent != NULL);
diff --git a/src/planner-usage-chart.c b/src/planner-usage-chart.c
index 8c13671..82ce91a 100644
--- a/src/planner-usage-chart.c
+++ b/src/planner-usage-chart.c
@@ -1069,7 +1069,7 @@ usage_chart_build_tree (PlannerUsageChart * chart)
 
        priv = chart->priv;
 
-       path = gtk_tree_path_new_root ();
+       path = gtk_tree_path_new_first ();
        if (!gtk_tree_model_get_iter (chart->priv->model, &iter, path)) {
                gtk_tree_path_free (path);
                return;
diff --git a/src/planner-usage-model.c b/src/planner-usage-model.c
index d55cf80..6287bce 100644
--- a/src/planner-usage-model.c
+++ b/src/planner-usage-model.c
@@ -274,7 +274,7 @@ usage_model_get_path_from_node (PlannerUsageModel *model, GNode *node)
        parent = node->parent;
 
        if (parent == NULL && node == model->priv->tree) {
-               return gtk_tree_path_new_root ();
+               return gtk_tree_path_new_first ();
        }
 
        g_assert (parent != NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]