[sysprof/wip/gtk4-port] scrollmap: fix range->scrollbar usage



commit 2ce5960c5b02793bf1b2be9e92354641540342c7
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 1 12:26:40 2021 -0700

    scrollmap: fix range->scrollbar usage

 src/libsysprof-ui/sysprof-scrollmap.c         | 2 +-
 src/libsysprof-ui/sysprof-visualizers-frame.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-scrollmap.c b/src/libsysprof-ui/sysprof-scrollmap.c
index bf1ec841..05e7b9bd 100644
--- a/src/libsysprof-ui/sysprof-scrollmap.c
+++ b/src/libsysprof-ui/sysprof-scrollmap.c
@@ -316,5 +316,5 @@ sysprof_scrollmap_set_adjustment (SysprofScrollmap *self,
   g_return_if_fail (SYSPROF_IS_SCROLLMAP (self));
   g_return_if_fail (!adjustment || GTK_IS_ADJUSTMENT (adjustment));
 
-  gtk_range_set_adjustment (GTK_RANGE (self->scrollbar), adjustment);
+  gtk_scrollbar_set_adjustment (GTK_SCROLLBAR (self->scrollbar), adjustment);
 }
diff --git a/src/libsysprof-ui/sysprof-visualizers-frame.c b/src/libsysprof-ui/sysprof-visualizers-frame.c
index 9df1c204..2f0fef1b 100644
--- a/src/libsysprof-ui/sysprof-visualizers-frame.c
+++ b/src/libsysprof-ui/sysprof-visualizers-frame.c
@@ -493,7 +493,7 @@ sysprof_visualizers_frame_init (SysprofVisualizersFrame *self)
   hadj = gtk_scrolled_window_get_hadjustment (self->hscroller);
 
   gtk_scrolled_window_set_hadjustment (self->ticks_scroller, hadj);
-  gtk_range_set_adjustment (GTK_RANGE (self->hscrollbar), hadj);
+  sysprof_scrollmap_set_adjustment (self->hscrollbar, hadj);
   gtk_range_set_adjustment (GTK_RANGE (self->zoom_scale), zadj);
 
   gtk_widget_insert_action_group (GTK_WIDGET (self),


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