st/scroll-view: Set scrollbar orientation

Use the new `orientation` property instead of `vertical`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3614>
This commit is contained in:
Florian Müllner 2025-01-26 21:23:34 +01:00
parent f4f02fe4dd
commit 8b8699d1d5

View File

@ -1017,7 +1017,7 @@ st_scroll_view_init (StScrollView *self)
NULL);
scrollbar = g_object_new (ST_TYPE_SCROLL_BAR,
"adjustment", priv->hadjustment,
"vertical", FALSE,
"orientation", CLUTTER_ORIENTATION_HORIZONTAL,
NULL);
g_set_weak_pointer (&priv->hscroll, scrollbar);
@ -1026,7 +1026,7 @@ st_scroll_view_init (StScrollView *self)
NULL);
scrollbar = g_object_new (ST_TYPE_SCROLL_BAR,
"adjustment", priv->vadjustment,
"vertical", TRUE,
"orientation", CLUTTER_ORIENTATION_VERTICAL,
NULL);
g_set_weak_pointer (&priv->vscroll, scrollbar);