summaryrefslogtreecommitdiff
path: root/gdk/gdkkeys.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-08-20 06:20:05 +0200
committerMatthias Clasen <mclasen@redhat.com>2020-02-09 16:50:22 -0500
commitfce37b137d7a926043eeb0c49410c0adf424e84c (patch)
tree80972d949d8922ef6e8378cfdab48d923043af67 /gdk/gdkkeys.c
parent998384aa08978ec1c4fa7fb34fab99c72cd24acd (diff)
downloadgtk+-fce37b137d7a926043eeb0c49410c0adf424e84c.tar.gz
gdk: Make gdk_keyval_name() return a const char
The string is const, so return it like that.
Diffstat (limited to 'gdk/gdkkeys.c')
-rw-r--r--gdk/gdkkeys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c
index 3425c3b3f1..a60a33be3e 100644
--- a/gdk/gdkkeys.c
+++ b/gdk/gdkkeys.c
@@ -738,7 +738,7 @@ gdk_keymap_get_modifier_mask (GdkKeymap *keymap,
* of the key, or %NULL if @keyval is not a valid key. The string
* should not be modified.
*/
-gchar *
+const gchar *
gdk_keyval_name (guint keyval)
{
return _gdk_keyval_name (keyval);