/*
* call-seq:
* closed_reason
*
* ** WHEN COMPILED AGAINST LIBNOTIFY 0.4.5 OR HIGHER **
*
* Returns the reason code why the notification was closed
*/
static VALUE
_wrap_notification_get_closed_reason(VALUE self)
{
NotifyNotification *n = NOTIFY_NOTIFICATION(RVAL2GOBJ(self));
int reason = -1;
#ifdef DEBUG
if(NOTIFY_IS_NOTIFICATION(n))
rb_warn("closed_reason, ok");
else
rb_warn("closed_reason, no ok");
#endif
reason = notify_notification_get_closed_reason(n);
return INT2FIX(reason);
}