Gtk.StatusIcon.new_from_file

function new_from_file(filename:filename):Gtk.StatusIcon {
    // Gjs wrapper for gtk_status_icon_new_from_file()
}

Creates a status icon displaying the file filename.

The image will be scaled down to fit in the available space in the notification area, if necessary.

Since 2.10

filename

a filename

Returns

a new Gtk.StatusIcon