[Wayland-bugs] [Bug 700166] glade fails to build introspection with Gtk 3.9

glade (bugzilla.gnome.org) bugzilla at gnome.org
Mon May 13 04:52:47 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=700166
  glade | general | unspecified

--- Comment #5 from Tristan Van Berkom <tristanvb at openismus.com> 2013-05-13 11:52:43 UTC ---
(In reply to comment #4)
> (In reply to comment #3)
> >
> > FWIW, in Glade, the only reasonable way of hacking around this bug,
> > without refactoring hundreds of lines of code, is to do something
> > completely broken (i.e., an empty ENUM ?) when generating the stock
> > GEnum when there is no DISPLAY available ... just for the sake of
> > working around this deeper issue.
> 
> Would my suggestion of GOnce in _init work in this case?

Not in this case no.

We use gtk_stock_list_ids() to actually generate the enum values
array which we feed to g_enum_register_static() (so that code
runs directly from our _get_type() function for that enum type).

It could be done differently, but as I mentioned, that would mean
refactoring the code to not use an enum type for the stock id selector
editors (not exactly an easy quick fix).

The quick and dirty fix to work around this issue would be to just
not register the stock list when DISPLAY is NULL (which would result
in an empty enumeration in the GIR output, which is not really a big
deal as I don't see that enum as important to add to the GIR).

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Wayland-bugs mailing list