Sha256: d3032f2b7a7193c51401e107e036c385af62346241f1224dc50620d10cdd31f5
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 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>attach_to (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: * attach_to(widget) * * widget = The widget (or a Gtk::StatusIcon, when compiled against GTK+ >= 2.9.2 and libnotify >= 0.4.1) to attach to * * Attaches the notification to a Gtk::Widget or Gtk::StatusIcon */ static VALUE _wrap_notification_attach_to(VALUE self, VALUE widget) { GObject *obj = G_OBJECT(RVAL2GOBJ(widget)); NotifyNotification *n = NOTIFY_NOTIFICATION(RVAL2GOBJ(self)); #ifdef DEBUG if(NOTIFY_IS_NOTIFICATION(n)) rb_warn("attach_to, ok"); else rb_warn("attach_to, no ok"); #endif #ifdef HAVE_STATUS_ICON if(GTK_IS_STATUS_ICON(obj)) notify_notification_attach_to_status_icon(n, GTK_STATUS_ICON(obj)); else notify_notification_attach_to_widget(n, GTK_WIDGET(obj)); #else notify_notification_attach_to_widget(n, GTK_WIDGET(obj)); #endif 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/M000009.html |
ruby-libnotify-0.4.1 | doc/classes/Notify/Notification.src/M000009.html |