st: Annotate getters/setters

Some properties have getters and setters that don't follow the
usual naming scheme, and they are therefore not recognized
automatically. Annotate the properties so that g-ir-scanner
picks up the methods.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3620>
This commit is contained in:
Florian Müllner 2025-01-23 23:08:51 +01:00 committed by Marge Bot
parent 4092882005
commit dc1298565d
2 changed files with 3 additions and 3 deletions

View File

@ -924,7 +924,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
ST_PARAM_READABLE);
/**
* StScrollView:enable-mouse-scrolling:
* StScrollView:enable-mouse-scrolling: (getter get_mouse_scrolling) (setter set_mouse_scrolling):
*
* Whether to enable automatic mouse wheel scrolling.
*/

View File

@ -893,7 +893,7 @@ st_widget_class_init (StWidgetClass *klass)
klass->get_focus_chain = st_widget_real_get_focus_chain;
/**
* StWidget:pseudo-class:
* StWidget:pseudo-class: (getter get_style_pseudo_class) (setter set_style_pseudo_class):
*
* The pseudo-class of the actor. Typical values include "hover", "active",
* "focus".
@ -904,7 +904,7 @@ st_widget_class_init (StWidgetClass *klass)
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
/**
* StWidget:style-class:
* StWidget:style-class: (getter get_style_class_name) (setter set_style_class_name):
*
* The style-class of the actor for use in styling.
*/