diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-02-26 15:52:20 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-02-26 15:52:20 +0000 |
commit | 9b1ce99cb4a37a196c680230929e777fb912e83c (patch) | |
tree | 0ed8edd3630f26dee9c699238042cd005e5af498 /gtk/gtkkeyhash.c | |
parent | 23558e0a3b2295d7db89dd5d4e67d857fc76d1c0 (diff) | |
download | gdk-pixbuf-9b1ce99cb4a37a196c680230929e777fb912e83c.tar.gz |
Handle a keyval of 0, by returning an empty list. (#72617, Kevin Breit)
Tue Feb 26 10:38:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval): Handle
a keyval of 0, by returning an empty list. (#72617,
Kevin Breit)
Diffstat (limited to 'gtk/gtkkeyhash.c')
-rw-r--r-- | gtk/gtkkeyhash.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkkeyhash.c b/gtk/gtkkeyhash.c index b904c4498..a70280df5 100644 --- a/gtk/gtkkeyhash.c +++ b/gtk/gtkkeyhash.c @@ -352,7 +352,10 @@ _gtk_key_hash_lookup_keyval (GtkKeyHash *key_hash, GdkKeymapKey *keys; gint n_keys; GSList *results = NULL; - + + if (!keyval) /* Key without symbol */ + return NULL; + /* Find some random keycode for this keycode */ gdk_keymap_get_entries_for_keyval (key_hash->keymap, keyval, |