Gtk.StyleContext.prototype.save

function save():void {
    // Gjs wrapper for gtk_style_context_save()
}

Saves the context state, so all modifications done through Gtk.StyleContext.prototype.add_class, Gtk.StyleContext.prototype.remove_class, Gtk.StyleContext.prototype.add_region, Gtk.StyleContext.prototype.remove_region or Gtk.set_junction_sides can be reverted in one go through Gtk.StyleContext.prototype.restore.

Since 3.0