[gtk/keymap-rework-2: 7/34] gdk: Move modifier mask api to GdkDisplay



commit 416ec580dc457e8bfc645fd364a14aaab637f47d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Apr 5 00:37:23 2020 -0400

    gdk: Move modifier mask api to GdkDisplay
    
    GdkKeymap is on the way out.

 gdk/gdkdisplay.c | 7 +++++++
 gdk/gdkdisplay.h | 4 ++++
 2 files changed, 11 insertions(+)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index e402a929d1..ce3963a542 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -1711,3 +1711,10 @@ gdk_display_set_cursor_theme (GdkDisplay *display,
   if (GDK_DISPLAY_GET_CLASS (display)->set_cursor_theme)
     GDK_DISPLAY_GET_CLASS (display)->set_cursor_theme (display, name, size);
 }
+
+GdkModifierType
+gdk_display_get_modifier_mask (GdkDisplay        *display,
+                               GdkModifierIntent  intent)
+{
+  return gdk_keymap_get_modifier_mask (gdk_display_get_keymap (display), intent);  
+}
diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h
index bdd6c985cb..8d9aace402 100644
--- a/gdk/gdkdisplay.h
+++ b/gdk/gdkdisplay.h
@@ -118,6 +118,10 @@ GdkMonitor * gdk_display_get_monitor_at_surface (GdkDisplay *display,
 GDK_AVAILABLE_IN_ALL
 GdkKeymap *  gdk_display_get_keymap  (GdkDisplay *display);
 
+GDK_AVAILABLE_IN_ALL
+GdkModifierType gdk_display_get_modifier_mask (GdkDisplay        *display,
+                                               GdkModifierIntent  intent);
+
 GDK_AVAILABLE_IN_ALL
 gboolean     gdk_display_get_setting (GdkDisplay *display,
                                       const char *name,


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