Gtk.NumerableIcon.prototype.set_count

function set_count(count:Number):void {
    // Gjs wrapper for gtk_numerable_icon_set_count()
}

Sets the currently displayed value of self to count.

The numeric value is always clamped to make it two digits, i.e. between -99 and 99. Setting a count of zero removes the emblem. If this method is called, and a label was already set on the icon, it will automatically be reset to null before rendering the number, i.e. the last method called between Gtk.NumerableIcon.prototype.set_count and Gtk.set_label has always priority.

Since 3.0

count

a number between -99 and 99