forked from AuroraMiddleware/gtk
Add gdk_display_get_keymap
This is just a better name for gdk_keymap_get_for_display.
This commit is contained in:
parent
fd85ff0c7a
commit
1012bbeecf
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user