Package: gtk
GBoxed gtk:css-section
Declaration(glib:define-gboxed-opaque css-section "GtkCssSection" :export t :type-initializer "gtk_css_section_get_type" :alloc (error "GtkCssSection cannot be created from the Lisp side")) Details
Defines a part of a CSS document.
Because sections are nested into one another, you can use the gtk:css-section-parent function to get the containing region. Examples(g:signal-connect provider "parsing-error" (lambda (provider section err) (declare (ignore provider err)) (let* ((startloc (gtk:css-section-start-location section)) (start (gtk:text-buffer-iter-at-line-index text (gtk:css-location-lines startloc) (gtk:css-location-line-bytes startloc))) (endloc (gtk:css-section-end-location section)) (end (gtk:text-buffer-iter-at-line-index text (gtk:css-location-lines endloc) (gtk:css-location-line-bytes endloc)))) (gtk:text-buffer-apply-tag text "error" start end) gdk:+event-stop+))) | Returned bySee also |
2024-4-23