[planner: 33/61] gantt-chart: Port object instantiation from GtkType to GObject




commit 79187248123527c374f0c56b547c803992038058
Author: Mart Raudsepp <leio gentoo org>
Date:   Sun Dec 27 15:17:31 2020 +0200

    gantt-chart: Port object instantiation from GtkType to GObject

 src/planner-gantt-chart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/planner-gantt-chart.c b/src/planner-gantt-chart.c
index aa110827..1bb9c6bd 100644
--- a/src/planner-gantt-chart.c
+++ b/src/planner-gantt-chart.c
@@ -1139,7 +1139,7 @@ planner_gantt_chart_new_with_model (GtkTreeModel *model)
 {
        PlannerGanttChart *chart;
 
-       chart = PLANNER_GANTT_CHART (gtk_type_new (planner_gantt_chart_get_type ()));
+       chart = PLANNER_GANTT_CHART (g_object_new (PLANNER_TYPE_GANTT_CHART, NULL));
 
        if (model) {
                planner_gantt_chart_set_model (chart, model);


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