Class (GI Struct)

Gtk-4.0GtkCssSection

Defines a part of a CSS document.

Because sections are nested into one another, you can use CssSection.get_parent to get the containing region.

Index

Constructors

Properties

Methods

  • 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.load_from_file or a section of type GTK_CSS_SECTION_IMPORT if it was loaded with an import rule from a different file.

    Returns Gtk.CssSection

    the parent section

  • Decrements the reference count on section, freeing the structure if the reference count reaches 0.

    Returns void