Do not include individual GTK+ headers

Bug #792263 reported by Alex Valavanis on 2011-06-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alex Valavanis

Bug Description

GTK+ 3 will not permit individual GTK+ headers to be included.[1] Instead, we should only use:
* gtk/gtk.h for GTK
* gtk/gtkunixprint.h for low-level, UNIX-specific printing functions
* gdk/gdk.h for GDK
* gdk/gdkx.h for GDK functions that are X11-specific
* gdk/gdkwin32.h for GDK functions that are Windows-specific

I attach a list of all the inclusions of individual g[td]k/.*h files.


Related branches

Alex Valavanis (valavanisalex) wrote :

We can test for the presence of individual headers during build using


su_v (suv-lp) on 2011-06-03
tags: added: build
Alex Valavanis (valavanisalex) wrote :

and of course also:


su_v (suv-lp) wrote :

Would the changes in merge proposal also address these (AFAIU likely) related reports (build failure on some platforms due to gtk/gdk includes)?
Bug #747512 in Inkscape: “Build failure in widgets/sp-color-wheel-selector.cpp”
Bug #709847 in Inkscape: “build failed on svg-view.cpp”

Alex Valavanis (valavanisalex) wrote :

Yes, I believe this should fix bug #747512 and bug #709847 and possibly anything else that involves missing GTK/GDK declarations.

Changed in inkscape:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Alex Valavanis (valavanisalex)
Changed in inkscape:
milestone: 0.49 → 0.48.2
Changed in inkscape:
status: In Progress → Fix Committed
su_v (suv-lp) wrote :

inkscape trunk: r10255
inkscape 0.48.x: r9783

Ted Gould (ted) on 2011-09-07
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers