libnotify Reference Manual

Synopsis

public class Notification : Object  {
    public    weak Gtk.Widget           attach_widget             { get; construct set; } ;
    public    weak string               body                      { get; construct set; } ;
    public    weak string               icon_name                 { get; construct set; } ;
    public    weak Gtk.StatusIcon       status_icon               { get; construct set; } ;
    public    weak string               summary                   { get; construct set; } ;


    public                              Notification              ( string              summary,
                                                                    string              body,
                                                                    string              icon,
                                                                    Gtk.Widget          attach ) ;
    public                              Notification.with_status_icon ( string              summary,
                                                                    string              body,
                                                                    string              icon,
                                                                    Gtk.StatusIcon      status_icon ) ;


    public    signal void               closed                    (  )  ;


    public    void                      add_action                ( string              action,
                                                                    string              label,
                                                                    ActionCallback      callback,
                                                                    GLib.FreeFunc       free_func ) ;
    public    void                      attach_to_status_icon     ( Gtk.StatusIcon      status_icon ) ;
    public    void                      attach_to_widget          ( Gtk.Widget          attach ) ;
    public    void                      clear_actions             (  ) ;
    public    void                      clear_hints               (  ) ;
    public    bool                      close                     (  ) 
                                                             throws GLib.Error;
    public    void                      set_category              ( string              category ) ;
    public    void                      set_geometry_hints        ( Gdk.Screen          screen,
                                                                    int                 x,
                                                                    int                 y ) ;
    public    void                      set_hint_byte             ( string              key,
                                                                    uchar               value ) ;
    public    void                      set_hint_byte_array       ( string              key,
                                                                    uchar[]             value,
                                                                    ulong               len ) ;
    public    void                      set_hint_double           ( string              key,
                                                                    double              value ) ;
    public    void                      set_hint_int32            ( string              key,
                                                                    int                 value ) ;
    public    void                      set_hint_string           ( string              key,
                                                                    string              value ) ;
    public    void                      set_icon_from_pixbuf      ( Gdk.Pixbuf          icon ) ;
    public    void                      set_timeout               ( int                 timeout ) ;
    public    void                      set_urgency               ( Urgency             urgency ) ;
    public    bool                      show                      (  ) 
                                                             throws GLib.Error;
    public    bool                      update                    ( string              summary,
                                                                    string              body,
                                                                    string              icon ) ;
}

Notification Description

Details

Constructor Details

Notification ()
    public                              Notification              ( string              summary,
                                                                    string              body,
                                                                    string              icon,
                                                                    Gtk.Widget          attach ) ;		

Notification.with_status_icon ()
    public                              Notification.with_status_icon ( string              summary,
                                                                    string              body,
                                                                    string              icon,
                                                                    Gtk.StatusIcon      status_icon ) ;		

Field Details

Signal Details

closed
    public    signal void               closed                    (  )  ;		

Property Details

attach_widget
    public    weak Gtk.Widget           attach_widget             { get; construct set; } ;		

body
    public    weak string               body                      { get; construct set; } ;		

icon_name
    public    weak string               icon_name                 { get; construct set; } ;		

status_icon
    public    weak Gtk.StatusIcon       status_icon               { get; construct set; } ;		

summary
    public    weak string               summary                   { get; construct set; } ;		

Method Details

add_action ()
    public    void                      add_action                ( string              action,
                                                                    string              label,
                                                                    ActionCallback      callback,
                                                                    GLib.FreeFunc       free_func ) ;		

attach_to_status_icon ()
    public    void                      attach_to_status_icon     ( Gtk.StatusIcon      status_icon ) ;		

attach_to_widget ()
    public    void                      attach_to_widget          ( Gtk.Widget          attach ) ;		

clear_actions ()
    public    void                      clear_actions             (  ) ;		

clear_hints ()
    public    void                      clear_hints               (  ) ;		

close ()
    public    bool                      close                     (  ) 
                                                             throws GLib.Error;		

set_category ()
    public    void                      set_category              ( string              category ) ;		

set_geometry_hints ()
    public    void                      set_geometry_hints        ( Gdk.Screen          screen,
                                                                    int                 x,
                                                                    int                 y ) ;		

set_hint_byte ()
    public    void                      set_hint_byte             ( string              key,
                                                                    uchar               value ) ;		

set_hint_byte_array ()
    public    void                      set_hint_byte_array       ( string              key,
                                                                    uchar[]             value,
                                                                    ulong               len ) ;		

set_hint_double ()
    public    void                      set_hint_double           ( string              key,
                                                                    double              value ) ;		

set_hint_int32 ()
    public    void                      set_hint_int32            ( string              key,
                                                                    int                 value ) ;		

set_hint_string ()
    public    void                      set_hint_string           ( string              key,
                                                                    string              value ) ;		

set_icon_from_pixbuf ()
    public    void                      set_icon_from_pixbuf      ( Gdk.Pixbuf          icon ) ;		

set_timeout ()
    public    void                      set_timeout               ( int                 timeout ) ;		

set_urgency ()
    public    void                      set_urgency               ( Urgency             urgency ) ;		

show ()
    public    bool                      show                      (  ) 
                                                             throws GLib.Error;		

update ()
    public    bool                      update                    ( string              summary,
                                                                    string              body,
                                                                    string              icon ) ;		


Created by Valadoc