GNOME Bugzilla – Bug 776807
GtkInspector doesn't show up when Gtk is initialized through option group
Last modified: 2017-01-08 00:16:36 UTC
There are different ways to initialize GTK+, and as stated in the documentation: > Note that there are some alternative ways to initialize GTK+: if you are calling gtk_parse_args(), gtk_init_check(), gtk_init_with_args() or g_option_context_parse() with the option group returned by gtk_get_option_group(), you don’t have to call gtk_init(). However, I noticed that when I use `gtk_get_option_group()` along with `g_option_context_parse()`, the GtkInspector doesn't show up. An easy workaround is to invoke `gtk_init()` additionally to the option group calls. An simple example is available here: https://gist.github.com/elboulangero/bb31a33150d3f4170fe2b698536c104d Cheers
Created attachment 342890 [details] [review] Make GTK_DEBUG=interactive work better We currently have various ways to initialize GTK+, and not all of them were supporting this way of bringing up the inspector. Fix this.
Does this patch work for you ?
Hi, yes the patch works and fixes the issue. Thanks !
Attachment 342890 [details] pushed as 507a1e4 - Make GTK_DEBUG=interactive work better