Commit 1012bbee authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Add gdk_display_get_keymap

This is just a better name for gdk_keymap_get_for_display.
parent fd85ff0c
......@@ -102,6 +102,7 @@ gdk_display_get_monitor_at_window
gdk_display_get_clipboard
gdk_display_get_primary_clipboard
gdk_display_get_setting
gdk_display_get_keymap
<SUBSECTION Standard>
GDK_DISPLAY
......
......@@ -1476,6 +1476,24 @@ gdk_keymap_get_for_display (GdkDisplay *display)
return GDK_DISPLAY_GET_CLASS (display)->get_keymap (display);
}
/**
* gdk_display_get_keymap:
* @display: the #GdkDisplay
*
* Returns the #GdkKeymap attached to @display.
*
* Returns: (transfer none): the #GdkKeymap attached to @display.
*
* Since: 3.94
*/
GdkKeymap *
gdk_display_get_keymap (GdkDisplay *display)
{
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
return GDK_DISPLAY_GET_CLASS (display)->get_keymap (display);
}
/*< private >
* gdk_display_make_gl_context_current:
* @display: a #GdkDisplay
......
......@@ -130,6 +130,9 @@ GDK_AVAILABLE_IN_3_22
GdkMonitor * gdk_display_get_monitor_at_window (GdkDisplay *display,
GdkWindow *window);
GDK_AVAILABLE_IN_3_94
GdkKeymap * gdk_display_get_keymap (GdkDisplay *display);
GDK_AVAILABLE_IN_3_94
gboolean gdk_display_get_setting (GdkDisplay *display,
const char *name,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment