[webkit-dev] Odd Build Issue on Gtk Port
evan at chromium.org
Fri Oct 15 15:32:01 PDT 2010
"GDK_DISPLAY has been deprecated since version 2.22 and should not be
used in newly-written code. Use gdk_display_get_default()"
gdk_display_get_default() has been available since 2.2, which is older
than anything still around. You should probably fix the call site
rather than doing this header tweak.
On Fri, Oct 15, 2010 at 3:13 PM, Alex Milowski <alex at milowski.org> wrote:
> I kept getting GDK_DISPLAY related errors on my Ubuntu-based development
> machine. It turns on in Gtk 2.22.0 that GDK_DISPLAY just isn't defined
> (at least via Ubuntu 10.10).
> I fixed that by a header tweak:
> Index: GtkVersioning.h
> --- GtkVersioning.h (revision 69861)
> +++ GtkVersioning.h (working copy)
> @@ -30,6 +30,10 @@
> // Macros to avoid deprecation checking churn
> +#if GTK_CHECK_VERSION(2, 22, 0)
> +#define GDK_DISPLAY() (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()))
> #ifndef GTK_API_VERSION_2
> #define GDK_DISPLAY() (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()))
> I'm not an expert on this so I really don't know why this is
> necessary. With the
> above change, everything compiles and works fine.
> --Alex Milowski
> "The excellence of grammar as a guide is proportional to the paucity of the
> inflexions, i.e. to the degree of analysis effected by the language
> Bertrand Russell in a footnote of Principles of Mathematics
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev