/* Returns: whether @handler_id identifies a handler connected to @instance.  */
gboolean g_signal_handler_is_connected(gpointer instance, gulong handler_id)
/* Returns: whether @handler_id identifies a handler connected to @instance.  */
gboolean g_signal_handler_is_connected(gpointer instance, gulong handler_id)
{
  Handler *handler;
  gboolean connected;
  g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), FALSE);
  SIGNAL_LOCK ();
  handler = handler_lookup (instance, handler_id, NULL, NULL);
  connected = handler != NULL;
  SIGNAL_UNLOCK ();
  return connected;
}