/* Returns: the signal name, or NULL if the signal number was invalid.  */
const gchar* g_signal_name(guint signal_id)
/* Returns: the signal name, or NULL if the signal number was invalid.  */
const gchar* g_signal_name(guint signal_id)
{
  SignalNode *node;
  const gchar *name;
  SIGNAL_LOCK ();
  node = LOOKUP_SIGNAL_NODE (signal_id);
  name = node ? node->name : NULL;
  SIGNAL_UNLOCK ();
  return (char*) name;
}