gtk-inspector

Launch GTK Inspector to debug GTK4 applications interactively.

8|2|Updated Oct 5, 2024
One-click install
npx skills add https://github.com/chebizarro/nostrc --skill gtk-inspector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gtk-inspector
Source: https://github.com/chebizarro/nostrc/tree/main/skills/gtk-inspector
Command: npx skills add https://github.com/chebizarro/nostrc --skill gtk-inspector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a powerful, interactive debugging environment for GTK4 applications, allowing developers to inspect and modify widget trees, CSS styling, GObject properties, and rendering performance in real-time.

Core Features & Use Cases

  • Live Introspection: Examine widget hierarchy, properties, and CSS in real-time.
  • Interactive Debugging: Modify styles and properties on the fly without recompilation.
  • Use Case: Debugging a complex UI layout issue in a GTK application by visually inspecting widget bounds, CSS rules, and expansion properties to pinpoint and fix sizing problems.

Quick Start

Launch the application with the GTK Inspector enabled using the GTK_DEBUG=interactive environment variable.

Frequently Asked Questions about gtk-inspector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a GTK4 application's widget tree visually?

Launch your GTK4 application with the GTK_DEBUG=interactive environment variable to open the GTK Inspector, enabling live introspection and modification of the widget tree, CSS rules, and GObject properties.

Can I modify CSS styling in real-time without recompiling my GTK app?

Yes, the GTK Inspector enables live modification of CSS styling and widget properties on the fly, allowing you to test UI changes and fix layout issues instantly without recompiling the application.

How does the GTK Inspector help troubleshoot UI layout sizing problems?

The GTK Inspector facilitates visual inspection of widget bounds, CSS rules, and expansion properties in real-time, allowing you to pinpoint the exact elements causing UI layout or sizing problems in your application.

Does the GTK Inspector support programmatic use in test and debug builds?

Yes, the GTK Inspector supports programmatic use in test and debug builds via environment variables and API calls, allowing you to integrate interactive widget introspection into your automated testing workflow.

What is the best way to inspect GObject properties and signal handlers in a GTK4 app?

The best way to inspect GObject properties and signal handlers is by using the GTK Inspector, which provides an interactive environment to examine and modify these elements alongside rendering performance metrics in real-time.