Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/settings.c @ 764:4e15322d315e
Allow binding of meta keys
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 19 Mar 2006 16:00:40 +0100 |
parents | ee03b56b93ee |
children | 46304b773a44 |
comparison
equal
deleted
inserted
replaced
763:6866ee749225 | 764:4e15322d315e |
---|---|
282 | 282 |
283 if (setval) return atoi(setval); | 283 if (setval) return atoi(setval); |
284 return 0; | 284 return 0; |
285 } | 285 } |
286 | 286 |
287 // Return the command the key is bound to, or NULL. | |
288 const gchar *isbound(int key) | |
289 { | |
290 gchar asciikey[16]; | |
291 g_snprintf(asciikey, 15, "%d", key); | |
292 return settings_get(SETTINGS_TYPE_BINDING, asciikey); | |
293 } | |
294 | |
295 // settings_get_status_msg(status) | 287 // settings_get_status_msg(status) |
296 // Return a string with the current status message: | 288 // Return a string with the current status message: |
297 // - if there is a user-defined message ("message" option), | 289 // - if there is a user-defined message ("message" option), |
298 // return this message | 290 // return this message |
299 // - if there is a user-defined message for the given status (and no | 291 // - if there is a user-defined message for the given status (and no |