comparison finch/libgnt/gntkeys.c @ 19133:c6282dc3fb9f

propagate from branch 'im.pidgin.pidgin' (head 6521407fd5a6d9175e6532a874a2735658c113e9) to branch 'im.pidgin.soc.2007.finchfeat' (head 47dd316bb08a5320b3e606960fd08c7678429657)
author Eric Polino <aluink@pidgin.im>
date Thu, 05 Jul 2007 02:41:26 +0000
parents ac904659104f 48067a8f6a32
children c79177766e13
comparison
equal deleted inserted replaced
19132:1b942e21ec1b 19133:c6282dc3fb9f
151 } 151 }
152 } 152 }
153 153
154 const char *gnt_key_translate(const char *name) 154 const char *gnt_key_translate(const char *name)
155 { 155 {
156 return g_hash_table_lookup(specials, name); 156 return name ? g_hash_table_lookup(specials, name) : NULL;
157 } 157 }
158 158
159 typedef struct { 159 typedef struct {
160 const char *name; 160 const char *name;
161 const char *key; 161 const char *key;