Add gdk_display_get_keymap

This is just a better name for gdk_keymap_get_for_display.
This commit is contained in:
Matthias Clasen 2017-12-15 06:53:13 -05:00
parent fd85ff0c7a
commit 1012bbeecf
3 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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,