After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 604117 - Add info about single includes when compiling GTK+ apps
Add info about single includes when compiling GTK+ apps
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Documentation
2.19.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-12-08 21:13 UTC by Javier Jardón (IRC: jjardon)
Modified: 2009-12-15 19:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add info about single includes when compiling GTK+ apps (6.96 KB, patch)
2009-12-08 21:19 UTC, Javier Jardón (IRC: jjardon)
needs-work Details | Review
Add info about single includes when compiling GTK+ apps.v2 (1.87 KB, patch)
2009-12-08 22:42 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Add info about single includes when compiling GTK+ apps.v3 (1.71 KB, patch)
2009-12-09 22:58 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review

Description Javier Jardón (IRC: jjardon) 2009-12-08 21:13:35 UTC
gtk.h, gdk.h, gdk-pixbuf.h. are the recommended includes.

But there are some exceptions: gdkkeysyms.h, gdkx.h, gtkprintunixdialog.h and gtkpagesetupunixdialog.h.
Comment 1 Javier Jardón (IRC: jjardon) 2009-12-08 21:19:02 UTC
Created attachment 149369 [details] [review]
Add info about single includes when compiling GTK+ apps
Comment 2 Christian Dywan 2009-12-08 21:45:56 UTC
You should also mention gdkwin32.h.
Comment 3 Javier Jardón (IRC: jjardon) 2009-12-08 22:42:41 UTC
Created attachment 149378 [details] [review]
Add info about single includes when compiling GTK+ apps.v2

I've cleaned the patch.

About gdkwin32.h, should the documentation moved to public api first?
Comment 4 Javier Jardón (IRC: jjardon) 2009-12-09 22:58:31 UTC
Created attachment 149491 [details] [review]
Add info about single includes when compiling GTK+ apps.v3

Use <gtkunixprint.h> when use the non-portable GtkPrintUnixDialog API.
Comment 5 Matthias Clasen 2009-12-14 00:58:56 UTC
Comment on attachment 149491 [details] [review]
Add info about single includes when compiling GTK+ apps.v3

Looks good to me. We can always add gdkwin32.h later
Comment 6 Javier Jardón (IRC: jjardon) 2009-12-15 19:11:05 UTC
Comment on attachment 149491 [details] [review]
Add info about single includes when compiling GTK+ apps.v3

commit 44cadd2a48f93dd40a04ac83b157a78b2db0ffb3