<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>245723</bug_id>
          
          <creation_ts>2022-09-27 03:49:29 -0700</creation_ts>
          <short_desc>[GTK] Non-unified GTK4 build broken</short_desc>
          <delta_ts>2022-09-28 04:46:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>210100</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alberto Garcia">berto</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>csaavedra</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1901448</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2022-09-27 03:49:29 -0700</bug_when>
    <thetext>/tmp/webkit2gtk-2.38.0/Source/WebKit/Shared/gtk/NativeWebMouseEventGtk.cpp: In constructor ‘WebKit::NativeWebMouseEvent::NativeWebMouseEvent(GdkEvent*, int, std::optional&lt;WebCore::FloatSize&gt;)’:
/tmp/webkit2gtk-2.38.0/Source/WebKit/Shared/gtk/NativeWebMouseEventGtk.cpp:36:21: error: ‘gdk_event_copy’ was not declared in this scope; did you mean ‘gst_event_copy’?
   36 |     , m_nativeEvent(gdk_event_copy(event))
      |                     ^~~~~~~~~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901450</commentid>
    <comment_count>1</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2022-09-27 04:00:28 -0700</bug_when>
    <thetext>This needs to include GtkVersioning.h

--- a/Source/WebKit/Shared/gtk/NativeWebMouseEventGtk.cpp
+++ b/Source/WebKit/Shared/gtk/NativeWebMouseEventGtk.cpp
@@ -27,6 +27,7 @@
 #include &quot;NativeWebMouseEvent.h&quot;
 
 #include &quot;WebEventFactory.h&quot;
+#include &lt;Source/WebCore/platform/gtk/GtkVersioning.h&gt;
 #include &lt;gdk/gdk.h&gt;
 
 namespace WebKit {</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901456</commentid>
    <comment_count>2</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2022-09-27 04:24:47 -0700</bug_when>
    <thetext>Shouldn&apos;t it be #include &lt;WebCore/GtkVersioning.h&gt; ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901461</commentid>
    <comment_count>3</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2022-09-27 04:57:01 -0700</bug_when>
    <thetext>(In reply to Claudio Saavedra from comment #2)
&gt; Shouldn&apos;t it be #include &lt;WebCore/GtkVersioning.h&gt; ?

yes, sorry, I tested a complete build and it works now

 #include &quot;WebEventFactory.h&quot;
+#include &lt;WebCore/GtkVersioning.h&gt;
 #include &lt;gdk/gdk.h&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901738</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-09-28 04:40:32 -0700</bug_when>
    <thetext>The issue is present in “main” as well, so I have removed the [2.28.0]
tag from the summary. I can make sure this gets backported to the release
branch 😉️</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901741</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-09-28 04:43:24 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/4789</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901742</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-28 04:46:43 -0700</bug_when>
    <thetext>Committed 254950@main (8b91cf150e8a): &lt;https://commits.webkit.org/254950@main&gt;

Reviewed commits have been landed. Closing PR #4789 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>