Class | Notify::Notification |
In: |
rnotify.c
|
Parent: | Object |
libnotify ruby interface [ www.galago-project.org ]
URGENCY_LOW | = | INT2FIX( NOTIFY_URGENCY_LOW ) |
URGENCY_NORMAL | = | INT2FIX( NOTIFY_URGENCY_NORMAL ) |
URGENCY_CRITICAL | = | INT2FIX( NOTIFY_URGENCY_CRITICAL ) |
EXPIRES_DEFAULT | = | INT2FIX( NOTIFY_EXPIRES_DEFAULT ) |
EXPIRES_NEVER | = | INT2FIX( NOTIFY_EXPIRES_NEVER ) |
summ = The summary text ( required )
msg = The body text or nil
icon = The icon or nil
widget = The widget (or a Gtk::StatusIcon, when compiled against GTK+ >= 2.9.2 and libnotify >= 0.4.1) to attach to or nil
Creates and returns a new notification
action = The action id
label = The action label
user_data = Custom data to pass into the block ( optional )
Adds an action. When the action is invoked, the specified block will be called
Examples:
myinstance.add_action( "MyAction", "MyLabel" ) do |action|
# something to do
end
Or
myinstance.add_action( "MyAction", "MyLabel", MyData ) do |action, mydata|
# something to do
end
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 widget/Gtk::StatusIcon
** WHEN COMPILED AGAINST LIBNOTIFY 0.4.1 OR HIGHER **
screen = The GdkScreen the notification should appear on
x = The X coordinate to point to
y = The Y coordinate to point to
Sets the geometry hints on the notification
Tells the notification server to display the notification on the screen. if TRUE returns, show the notification otherwise returns FALSE