Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
G
gtk-doc
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 90
    • Issues 90
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • gtk-doc
  • Issues
  • #12

Closed
Open
Opened Jan 13, 2011 by bugzilla-migration@bugzilla-migrationReporter

[PATCH] Enable querying for custom GParamSpec properties during GObject scan

Submitted by Elliot Smith

Link to original bug (#639430)

Description

Created attachment 178236 [PATCH] Add support for custom property parsing as part of GObject scan

Use a similar approach to the GTK+ support to enable documentation of custom properties as each GType is scanned.

Extra properties to look for are defined in a property loader definition file, which specifies a GType filter, property lookup function, and property flag ("s" for style, "c" for child, "" for standard) for each property returned.

For example:

MX_TYPE_STYLABLE,mx_stylable_iface_list_properties,s

(obviously requires mx_stylable_iface_list_properties function to exist, which I've currently suggested for Mx)

The property loader file is parsed by gtkdoc-scangobj (passed in via a new --custom-properties option) and used to augment the args output function (in mx-scan.c) for each scanned type. Any GTypes being scanned which match the GType filter have the property lookup function called on them; any returned GParamSpecs are then parsed and added to the .args file for the matching class, with the flags set.

It might also be possible to refactor some of the GTK+ args output code to make use of this approach.

Patch is attached (against master).

Patch 178236, "[PATCH] Add support for custom property parsing as part of GObject scan":
0001-scangobj-Add-support-for-custom-property-documentati.patch

Blocking

  • Bug 638831
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/gtk-doc#12