<?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>126351</bug_id>
          
          <creation_ts>2013-12-31 14:03:18 -0800</creation_ts>
          <short_desc>GtkXtBin uses deprecated gdk_threads_enter() and gdk_threads_leave()</short_desc>
          <delta_ts>2015-01-28 11:15:17 -0800</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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brendan Long">b.long</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>963551</commentid>
    <comment_count>0</comment_count>
    <who name="Brendan Long">b.long</who>
    <bug_when>2013-12-31 14:03:18 -0800</bug_when>
    <thetext>As far as I can tell, these two functions were deprecated because everyone uses them incorrectly, and the new correct way of doing this is to do everything in a main-loop callback.

See: https://developer.gnome.org/gdk3/unstable/gdk3-Threads.html#GDK-THREADS-ENTER:CAPS

GtkXtBin doesn&apos;t seem to have an upstream as far as I can tell, but Firefox also uses it, so if we fix this, we might want to share the result with them.

Build output:

../../Source/WebCore/plugins/gtk/gtk2xtbin.c: In function &apos;xt_event_prepare&apos;:
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:138:3: warning: &apos;gdk_threads_enter&apos; is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46) [-Wdeprecated-declarations]
   gdk_threads_enter();
   ^
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:140:3: warning: &apos;gdk_threads_leave&apos; is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48) [-Wdeprecated-declarations]
   gdk_threads_leave();
   ^
../../Source/WebCore/plugins/gtk/gtk2xtbin.c: In function &apos;xt_event_check&apos;:
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:148:3: warning: &apos;gdk_threads_enter&apos; is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46) [-Wdeprecated-declarations]
   gdk_threads_enter();
   ^
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:153:5: warning: &apos;gdk_threads_leave&apos; is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48) [-Wdeprecated-declarations]
     gdk_threads_leave();
     ^
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:157:3: warning: &apos;gdk_threads_leave&apos; is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48) [-Wdeprecated-declarations]
   gdk_threads_leave();
   ^
../../Source/WebCore/plugins/gtk/gtk2xtbin.c: In function &apos;xt_event_dispatch&apos;:
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:171:3: warning: &apos;gdk_threads_enter&apos; is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46) [-Wdeprecated-declarations]
   gdk_threads_enter();
   ^
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:182:3: warning: &apos;gdk_threads_leave&apos; is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48) [-Wdeprecated-declarations]
   gdk_threads_leave();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1064963</commentid>
    <comment_count>1</comment_count>
    <who name="Brendan Long">b.long</who>
    <bug_when>2015-01-28 11:15:17 -0800</bug_when>
    <thetext>This file doesn&apos;t seem to exist anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>