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:
parent
f4f02fe4dd
commit
8b8699d1d5
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user