[gtk/wip/readonly-events: 18/25] Drop gdk_event_set_keyval



commit 13e8d6f74438761fbeedd047e076f326c1342e26
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 12 14:55:45 2020 -0500

    Drop gdk_event_set_keyval
    
    It is no longer used.

 gdk/gdkevents.c | 9 ---------
 gdk/gdkevents.h | 4 ----
 2 files changed, 13 deletions(-)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 4db6aea8cc..4c86c2375f 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -1132,15 +1132,6 @@ gdk_event_get_keyval (const GdkEvent *event,
   return fetched;
 }
 
-void
-gdk_event_set_keyval (GdkEvent *event,
-                      guint     keyval)
-{
-  if (event->any.type == GDK_KEY_PRESS ||
-      event->any.type == GDK_KEY_RELEASE)
-    event->key.keyval = keyval;
-}
-
 /**
  * gdk_event_get_keycode:
  * @event: a #GdkEvent
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index 4f90cd8d07..5ba08d997b 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -373,10 +373,6 @@ GDK_AVAILABLE_IN_ALL
 gboolean  gdk_event_get_keyval          (const GdkEvent *event,
                                          guint          *keyval);
 
-GDK_AVAILABLE_IN_ALL
-void      gdk_event_set_keyval          (GdkEvent *event,
-                                         guint     keyval);
-
 GDK_AVAILABLE_IN_ALL
 gboolean  gdk_event_get_keycode         (const GdkEvent *event,
                                          guint16        *keycode);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]