11

gtkparasite is great for gtk+2, but unfortunately it won't work with gtk+3.

Is there any alternative?

don_crissti
  • 79,330
  • 30
  • 216
  • 245
zetah
  • 1,997
  • 4
  • 20
  • 21

2 Answers2

6

If you are looking at all the possibilities that can resolve the problem, I suggest the following link which is about how to port gtkparasite to GTK3. Although it is a bit technical, the effort is successful.

http://code.google.com/p/gtkparasite/issues/detail?id=18

George M
  • 13,589
  • 4
  • 43
  • 53
Sam
  • 2,458
  • 5
  • 21
  • 28
  • I just did that and thought to report, but there you are :) Patch from comment 5 works great! – zetah Apr 30 '12 at 15:18
  • 1
    [GTK3 is apparently now supported](https://github.com/chipx86/gtkparasite/pull/2#issuecomment-26670246) (since Oct 2013...), you need to compile it from source using the `./autogen.sh --with-gtk=3.0`, `make` and `sudo make install`. The packaged fedora version still only supports GTK2 though :( – Wilf Jul 19 '15 at 17:57
5

Yes, there's now an official GNOME tool called GtkInspector:

GtkInspector is the built-in interactive debugging support in GTK+. It was added in GTK+ 3.14, based on a copy of the well-estabished gtkparasite. To enable the debugger, either start your app with GTK_DEBUG=interactive in your environment, or run
gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true and launch the debugger with the Control-Shift-I or Control-Shift-D keyboard shortcuts.

enter image description here

don_crissti
  • 79,330
  • 30
  • 216
  • 245