Gtk.CssSection.prototype.get_parent

function get_parent():Gtk.CssSection {
    // Gjs wrapper for gtk_css_section_get_parent()
}

Gets the parent section for the given section. The parent section is the section that contains this section. A special case are sections of type #GTK_CSS_SECTION_DOCUMENT. Their parent will either be null if they are the original CSS document that was loaded by Gtk.CssProvider.prototype.load_from_file or a section of type #GTK_CSS_SECTION_IMPORT if it was loaded with an import rule from a different file.

Since 3.2

Returns

the parent section or null if none