From b358897a3bfd1ddd707feb6022abc6a937b62cc9 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 31 Mar 2022 23:41:41 +0200 Subject: [PATCH] navigation: Rename parse_state to parse_modifier_state `parse_state` sounds a bit weird and `parse_modifier_state` is clearer. Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/video/navigation.c | 4 ++-- subprojects/gst-plugins-base/gst-libs/gst/video/navigation.h | 4 ++-- subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/navigation.c b/subprojects/gst-plugins-base/gst-libs/gst/video/navigation.c index 12fc638bf..09411ce 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/navigation.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/navigation.c @@ -1443,7 +1443,7 @@ gst_navigation_event_set_coordinates (GstEvent * event, gdouble x, gdouble y) /** - * gst_navigation_event_parse_state: + * gst_navigation_event_parse_modifier_state: * @event: The #GstEvent to modify. * @state: a bit-mask representing the state of the modifier keys (e.g. Control, * Shift and Alt). @@ -1454,7 +1454,7 @@ gst_navigation_event_set_coordinates (GstEvent * event, gdouble x, gdouble y) * Since: 1.22 */ gboolean -gst_navigation_event_parse_state (GstEvent * event, +gst_navigation_event_parse_modifier_state (GstEvent * event, GstNavigationModifierType * state) { GstNavigationEventType e_type; diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/navigation.h b/subprojects/gst-plugins-base/gst-libs/gst/video/navigation.h index bb922f3..ebe16a7 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/navigation.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/navigation.h @@ -560,8 +560,8 @@ void gst_navigation_send_event_simple (GstNavigation *navigation, GstEvent *event); GST_VIDEO_API -gboolean gst_navigation_event_parse_state (GstEvent *event, - GstNavigationModifierType *state); +gboolean gst_navigation_event_parse_modifier_state (GstEvent *event, + GstNavigationModifierType *state); G_END_DECLS diff --git a/subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c b/subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c index e52b654..de32097 100644 --- a/subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c +++ b/subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c @@ -130,7 +130,8 @@ gst_navigationtest_src_event (GstBaseTransform * trans, GstEvent * event) &navtest->mousey); GST_DEBUG ("received mouse-move event at %f,%f", navtest->mousex, navtest->mousey); - gst_navigation_event_parse_state (event, &navtest->modifiers); + gst_navigation_event_parse_modifier_state (event, + &navtest->modifiers); break; } case GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS:{ @@ -176,7 +177,8 @@ gst_navigationtest_src_event (GstBaseTransform * trans, GstEvent * event) case GST_NAVIGATION_EVENT_KEY_RELEASE:{ const char *name; - gst_navigation_event_parse_state (event, &navtest->modifiers); + gst_navigation_event_parse_modifier_state (event, + &navtest->modifiers); gst_navigation_event_parse_key_event (event, &name); GST_DEBUG ("received %s event for key \"%s\"", type == GST_NAVIGATION_EVENT_KEY_PRESS ? "key-press" : -- 2.7.4