gi-gtk-hs-0.3.16: A wrapper for gi-gtk, adding a few more idiomatic API parts on top
Stabilityprovisional
Portabilityportable (depends on GHC)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.GI.Gtk.Widget

Description

Helper functions for working with Widgets.

Synopsis

Documentation

printWidgetTree :: forall m a. (MonadIO m, IsWidget a) => a -> m () Source #

Print out a tree of decendents for a given GTK Widget. This function is mainly to help with debugging.

This function outputs a tree of Widgets like the following:

GtkApplicationWindow  0x00000000068de2a0
  GtkMenuBar  0x0000000006c661d0
    GtkModelMenuItem  0x0000000006c72b00
      GtkAccelLabel  0x0000000006c73b60
    GtkModelMenuItem  0x0000000006c723c0
      GtkAccelLabel  0x0000000006c733a0
  GtkNotebook  0x0000000006b0a200
    GtkPaned  0x0000000006b073c0
      GtkScrolledWindow  0x0000000006b0c7c0
        VteTerminal  0x00000000068af4a0
      GtkScrolledWindow  0x0000000006b0c470
        VteTerminal  0x00000000068af370

Note that you may also be interested in GTKInspector, which is a built-in interactive debugger for GTK applications.