[planner: 34/61] gantt-chart: Port from gtk_object_sink to g_object_ref_sink
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner: 34/61] gantt-chart: Port from gtk_object_sink to g_object_ref_sink
- Date: Sat, 12 Jun 2021 17:30:25 +0000 (UTC)
commit 5dd78b0627dffc9e57f6593a14b6655987749a20
Author: Mart Raudsepp <leio gentoo org>
Date: Sun Dec 27 16:13:51 2020 +0200
gantt-chart: Port from gtk_object_sink to g_object_ref_sink
src/planner-gantt-chart.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/planner-gantt-chart.c b/src/planner-gantt-chart.c
index 1bb9c6bd..10eb1051 100644
--- a/src/planner-gantt-chart.c
+++ b/src/planner-gantt-chart.c
@@ -624,8 +624,7 @@ gantt_chart_set_adjustments (PlannerGanttChart *chart,
if (priv->hadjustment != hadj) {
priv->hadjustment = hadj;
- g_object_ref (priv->hadjustment);
- gtk_object_sink (GTK_OBJECT (priv->hadjustment));
+ g_object_ref_sink (priv->hadjustment);
gtk_widget_set_scroll_adjustments (priv->header,
hadj,
@@ -636,8 +635,7 @@ gantt_chart_set_adjustments (PlannerGanttChart *chart,
if (priv->vadjustment != vadj) {
priv->vadjustment = vadj;
- g_object_ref (priv->vadjustment);
- gtk_object_sink (GTK_OBJECT (priv->vadjustment));
+ g_object_ref_sink (priv->vadjustment);
need_adjust = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]