Sha256: e471bfca65b4ffbc2d184d55d7f27fb39d1d34b1e45c44ffffd2f1237314f0ca

Contents?: true

Size: 1017 Bytes

Versions: 2

Compression:

Stored size: 1017 Bytes

Contents

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>closed_reason (Notify::Notification)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre>/*
 * 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(&quot;closed_reason, ok&quot;);
  else
    rb_warn(&quot;closed_reason, no ok&quot;);
#endif

  reason = notify_notification_get_closed_reason(n);

  return INT2FIX(reason);
}</pre>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-libnotify-0.4.1.1 doc/classes/Notify/Notification.src/M000023.html
ruby-libnotify-0.4.1 doc/classes/Notify/Notification.src/M000023.html