Sha256: f3cd17eacb8c38e31a5f2a9b6abc2a177e4592812bcb6da873eaa44adaabf20e

Contents?: true

Size: 1012 Bytes

Versions: 2

Compression:

Stored size: 1012 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>pixbuf_icon= (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:
 *      pixbuf_icon=(icon)
 *
 * icon = The icon
 *
 * Sets the icon from a Gdk::Pixbuf
 */
static VALUE
_wrap_notification_set_pixbuf_icon(VALUE self, VALUE icon)
{
  GdkPixbuf *pix = GDK_PIXBUF(RVAL2GOBJ(icon));
  NotifyNotification *n = NOTIFY_NOTIFICATION(RVAL2GOBJ(self));

#ifdef DEBUG
  if(NOTIFY_IS_NOTIFICATION(n) &amp;&amp; GDK_IS_PIXBUF(pix))
    rb_warn(&quot;pixbuf_icon, ok&quot;);
  else
    rb_warn(&quot;pixbuf_icon, no ok&quot;);
#endif

  notify_notification_set_icon_from_pixbuf(n, pix);

  return Qnil;
}</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/M000014.html
ruby-libnotify-0.4.1 doc/classes/Notify/Notification.src/M000014.html