navigation: Rename parse_state to parse_modifier_state
authorThibault Saunier <tsaunier@igalia.com>
Thu, 31 Mar 2022 21:41:41 +0000 (23:41 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 1 Apr 2022 06:38:43 +0000 (06:38 +0000)
`parse_state` sounds a bit weird and `parse_modifier_state` is clearer.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2087>

subprojects/gst-plugins-base/gst-libs/gst/video/navigation.c
subprojects/gst-plugins-base/gst-libs/gst/video/navigation.h
subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c

index 12fc638bf252f3d793e6117074a113f4b996a821..09411ce0d2eb77756002e3a3969c8f37734a94cd 100644 (file)
@@ -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;
index bb922f3b5816afacfae7c848619427ae268338ad..ebe16a722e5bff8c61ed944d003656ac72ec6e9e 100644 (file)
@@ -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
 
index e52b654ca2ef9e32a7e5658acecac6b19eb3f7b0..de320972183fd8cd51ef99f3c19206bd0e257b9b 100644 (file)
@@ -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" :