Closed Bug 1706520 Opened 5 years ago Closed 5 years ago

error: use of undeclared identifier 'GdkIsX11Display' in nsNativeThemeGTK.cpp and nsPrintDialogGTK.cpp

Categories

(Core :: Widget: Gtk, defect, P3)

defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: twisniewski, Assigned: stransky)

Details

Attachments

(1 file)

I just rebased moz-central a couple of hours ago (April 20 2021), clobbered upon request, and my fresh build failed with errors indicating that GdkIsX11Display and GdkIsWaylandDisplay are not defined.

I was able to resolve the errors by adding #include "mozilla/WidgetUtilsGtk.h" to both nsNativeThemeGTK.cpp and nsPrintDialogGTK.cpp.

I see. Do you build without Wayland support?

Flags: needinfo?(twisniewski)
Assignee: nobody → stransky
Priority: -- → P3

I see the same on Solaris (no Wayland):

18:56.74 /builds/psumbera/mozilla-central-build/widget/gtk/nsNativeThemeGTK.cpp: In function ?void DrawThemeWithCairo(gfxContext*, mozilla::gfx::DrawTarget*, GtkWidgetState, WidgetNodeType, gint, GtkTextDirection, gint, bool, const Point&, const nsIntSize&, GdkRectangle&, nsITheme::Transparency)?:
18:56.74 /builds/psumbera/mozilla-central-build/widget/gtk/nsNativeThemeGTK.cpp:876:7: error: ?GdkIsX11Display? was not declared in this scope; did you mean ?GdkX11Display??18:56.74   876 |   if (GdkIsX11Display()) {
18:56.74       |       ^~~~~~~~~~~~~~~
18:56.74       |       GdkX11Display
18:56.79 /builds/psumbera/mozilla-central-build/widget/gtk/nsNativeThemeGTK.cpp: In member function ?virtual nsresult nsNativeThemeGTK::DrawWidgetBackground(gfxContext*, nsIFrame*, nsITheme::StyleAppearance, const nsRect&, const nsRect&, nsITheme::DrawOverflow)?:
..

The first bad revision is:
Destryoing build FS
The first bad revision is:
changeset: 576755:1f940b0cd2e1
user: stransky <stransky@redhat.com>
date: Tue Apr 20 05:29:01 2021 -0700
description:
Bug 1706022 [Linux] Use GdkIsWaylandDisplay()/GdkIsX11Display() instead of gfxPlatformGtk::GetPlatform() variants, r=jhorak

    Differential Revision: https://phabricator.services.mozilla.com/D112525
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/088249ce3aa2 [Linux] Add missing WidgetUtilsGtk.h headers to widget/gtk, r=emilio

I see. Do you build without Wayland support?

Yes, I'm building for X11.

Flags: needinfo?(twisniewski)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: