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 597594 - remove mandatory gdkx includes?
remove mandatory gdkx includes?
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.11.x
Other Linux
: Normal normal
: ---
Assigned To: Robert Roth
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2009-10-06 19:26 UTC by Michael Chudobiak
Modified: 2014-01-19 14:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove gdkx include (666 bytes, patch)
2014-01-15 13:50 UTC, Robert Roth
committed Details | Review

Description Michael Chudobiak 2009-10-06 19:26:12 UTC
Just for fun, I tried building a Windows version of gThumb on Fedora using mingw, like this:

yum install mingw*
./autogen.sh --host=i686-pc-mingw32
make

but it fails because of this:

[mjc@xena gthumb]$ make > eraseme
In file included from eggdesktopfile.c:34:
/usr/include/gtk-2.0/gdk/gdkx.h:32:22: error: X11/Xlib.h: No such file or directory
/usr/include/gtk-2.0/gdk/gdkx.h:33:23: error: X11/Xutil.h: No such file or directory


Anyway, I think the gdkx bits could be made optional.

This would simplify compilation of Windows and MacOS ports.

- Mike
Comment 1 Robert Roth 2014-01-15 13:50:48 UTC
Created attachment 266359 [details] [review]
Remove gdkx include

This patch removes the only gdkx include declaration without GDK_WINDOWING_X11 macro guard from the gthumb source code.

The other references of gdkx.h are from the libegg, used for session management and desktop file management. Session management is implemented as far as I know in GtkApplication from more recent GLib, and desktop file management in GDesktopAppInfo (example on how to replace eggdesktopfile usage in [1])

However the decision whether to drop libegg support and use the glib support instead is one to take by the maintainers of gthumb, as some maintainers have refused to do this because it binds the application closely to the GTK+ framework (which IMHO should not be a problem, as gThumb is a GNOME application with headerbar support, already tying it to recent GTK+)

[1] https://mail.gnome.org/archives/commits-list/2012-November/msg03031.html
Comment 2 Paolo Bacchilega 2014-01-19 12:16:37 UTC
Patch pushed to master, thank you
Comment 3 Paolo Bacchilega 2014-01-19 14:12:33 UTC
(In reply to comment #1)
> Created an attachment (id=266359) [details] [review]
> Remove gdkx include
> 
> This patch removes the only gdkx include declaration without GDK_WINDOWING_X11
> macro guard from the gthumb source code.
> 
> The other references of gdkx.h are from the libegg, used for session management
> and desktop file management. Session management is implemented as far as I know
> in GtkApplication from more recent GLib, and desktop file management in
> GDesktopAppInfo (example on how to replace eggdesktopfile usage in [1])
> 
> However the decision whether to drop libegg support and use the glib support
> instead is one to take by the maintainers of gthumb, as some maintainers have
> refused to do this because it binds the application closely to the GTK+
> framework (which IMHO should not be a problem, as gThumb is a GNOME application
> with headerbar support, already tying it to recent GTK+)
> 
> [1] https://mail.gnome.org/archives/commits-list/2012-November/msg03031.html

I've removed the libegg code now, thanks for the hint.