[Webkit-unassigned] [Bug 126351] New: GtkXtBin uses deprecated gdk_threads_enter() and gdk_threads_leave()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 31 14:05:26 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=126351
Summary: GtkXtBin uses deprecated gdk_threads_enter() and
gdk_threads_leave()
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Gtk
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: b.long at cablelabs.com
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'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 'xt_event_prepare':
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:138:3: warning: 'gdk_threads_enter' 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: 'gdk_threads_leave' 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 'xt_event_check':
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:148:3: warning: 'gdk_threads_enter' 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: 'gdk_threads_leave' 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: 'gdk_threads_leave' 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 'xt_event_dispatch':
../../Source/WebCore/plugins/gtk/gtk2xtbin.c:171:3: warning: 'gdk_threads_enter' 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: 'gdk_threads_leave' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48) [-Wdeprecated-declarations]
gdk_threads_leave();
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list