st/scroll-view: Deprecate {v,h}scroll properties

We have better replacements now, so we'll eventually want to stop
exposing the internal scroll bar children.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3020>
This commit is contained in:
Florian Müllner 2023-11-15 13:53:38 +01:00 committed by Marge Bot
parent 998d703bc2
commit b1cfe1732d
2 changed files with 4 additions and 2 deletions

View File

@ -882,7 +882,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
"StScrollBar",
"Horizontal scroll indicator",
ST_TYPE_SCROLL_BAR,
ST_PARAM_READABLE);
ST_PARAM_READABLE | G_PARAM_DEPRECATED);
/**
* StScrollView:vscroll:
@ -894,7 +894,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
"StScrollBar",
"Vertical scroll indicator",
ST_TYPE_SCROLL_BAR,
ST_PARAM_READABLE);
ST_PARAM_READABLE | G_PARAM_DEPRECATED);
/**
* StScrollView:hadjustment:

View File

@ -53,7 +53,9 @@ StScrollable *st_scroll_view_get_child (StScrollView *scroll);
void st_scroll_view_set_child (StScrollView *scroll,
StScrollable *child);
G_DEPRECATED
ClutterActor *st_scroll_view_get_hscroll_bar (StScrollView *scroll);
G_DEPRECATED
ClutterActor *st_scroll_view_get_vscroll_bar (StScrollView *scroll);
StAdjustment *st_scroll_view_get_hadjustment (StScrollView *scroll);