Sha256: 6e05eae0b6168d9ba40bf2c723d24916594eed38ca6dd9a2fe8f2ec927813550
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
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>update (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: * update(summ, msg, icon) * * summ = The new summary text (required) * * msg = The new body text or nil * * icon = The new icon or nil * * This won't send the update out and display it on the screen. * For that, you will need to call the Notification#show method. * * Returns TRUE if ok, FALSE otherwise */ static VALUE _wrap_notification_update(VALUE self, VALUE summ, VALUE msg, VALUE icon) { NotifyNotification *n = NOTIFY_NOTIFICATION(RVAL2GOBJ(self)); char *nsumm = NIL_P(summ) ? NULL : StringValuePtr(summ); char *nmsg = NIL_P(msg) ? NULL : StringValuePtr(msg); char *nicon = NIL_P(icon) ? NULL : StringValuePtr(icon); #ifdef DEBUG if(NOTIFY_IS_NOTIFICATION(n)) rb_warn("update, ok"); else rb_warn("update, no ok"); #endif if(nsumm == NULL || *nsumm == '\0') rb_raise(rb_eArgError, "REQUIRED: the `summ` field"); if(notify_notification_update(n, nsumm, nmsg, nicon) == TRUE) return Qtrue; return Qfalse; }</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/M000008.html |
ruby-libnotify-0.4.1 | doc/classes/Notify/Notification.src/M000008.html |