Title: [124318] trunk/Source
Revision
124318
Author
[email protected]
Date
2012-08-01 02:24:34 -0700 (Wed, 01 Aug 2012)

Log Message

Unreviewed. Fix GTK+ build with recent version of GTK+.

Use g_threads_enter/leave instead of the wrapper macros. This
gives a compile warning because they are now deprecated but at
least it builds.

Source/WebCore:

* plugins/gtk/gtk2xtbin.c:
(xt_event_prepare):
(xt_event_check):
(xt_event_dispatch):

Source/WebKit2:

* UIProcess/API/gtk/WebKitWebView.cpp:
(webkitWebViewRunAsModal): Fix enter/leave order.
* UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
(WebKit::WebPopupMenuProxyGtk::showPopupMenu):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (124317 => 124318)


--- trunk/Source/WebCore/ChangeLog	2012-08-01 09:23:46 UTC (rev 124317)
+++ trunk/Source/WebCore/ChangeLog	2012-08-01 09:24:34 UTC (rev 124318)
@@ -1,3 +1,16 @@
+2012-08-01  Carlos Garcia Campos  <[email protected]>
+
+        Unreviewed. Fix GTK+ build with recent version of GTK+.
+
+        Use g_threads_enter/leave instead of the wrapper macros. This
+        gives a compile warning because they are now deprecated but at
+        least it builds.
+
+        * plugins/gtk/gtk2xtbin.c:
+        (xt_event_prepare):
+        (xt_event_check):
+        (xt_event_dispatch):
+
 2012-08-01  Alexei Filippov  <[email protected]>
 
         Web Inspector: Add native memory used by GlyphCache to the snapshot

Modified: trunk/Source/WebCore/plugins/gtk/gtk2xtbin.c (124317 => 124318)


--- trunk/Source/WebCore/plugins/gtk/gtk2xtbin.c	2012-08-01 09:23:46 UTC (rev 124317)
+++ trunk/Source/WebCore/plugins/gtk/gtk2xtbin.c	2012-08-01 09:24:34 UTC (rev 124318)
@@ -132,9 +132,9 @@
 {   
   int mask;
 
-  GDK_THREADS_ENTER();
+  gdk_threads_enter();
   mask = XPending(xtdisplay);
-  GDK_THREADS_LEAVE();
+  gdk_threads_leave();
 
   return (gboolean)mask;
 }
@@ -142,16 +142,16 @@
 static gboolean
 xt_event_check (GSource*  source_data)
 {
-  GDK_THREADS_ENTER ();
+  gdk_threads_enter();
 
   if (xt_event_poll_fd.revents & G_IO_IN) {
     int mask;
     mask = XPending(xtdisplay);
-    GDK_THREADS_LEAVE ();
+    gdk_threads_leave();
     return (gboolean)mask;
   }
 
-  GDK_THREADS_LEAVE ();
+  gdk_threads_leave();
   return FALSE;
 }   
 
@@ -165,7 +165,7 @@
 
   ac = XtDisplayToApplicationContext(xtdisplay);
 
-  GDK_THREADS_ENTER ();
+  gdk_threads_enter();
 
   /* Process only real X traffic here.  We only look for data on the
    * pipe, limit it to XTBIN_MAX_EVENTS and only call
@@ -176,7 +176,7 @@
     XtAppProcessEvent(ac, XtIMXEvent);
   }
 
-  GDK_THREADS_LEAVE ();
+  gdk_threads_leave();
 
   return TRUE;  
 }

Modified: trunk/Source/WebKit2/ChangeLog (124317 => 124318)


--- trunk/Source/WebKit2/ChangeLog	2012-08-01 09:23:46 UTC (rev 124317)
+++ trunk/Source/WebKit2/ChangeLog	2012-08-01 09:24:34 UTC (rev 124318)
@@ -1,3 +1,16 @@
+2012-08-01  Carlos Garcia Campos  <[email protected]>
+
+        Unreviewed. Fix GTK+ build with recent version of GTK+.
+
+        Use g_threads_enter/leave instead of the wrapper macros. This
+        gives a compile warning because they are now deprecated but at
+        least it builds.
+
+        * UIProcess/API/gtk/WebKitWebView.cpp:
+        (webkitWebViewRunAsModal): Fix enter/leave order.
+        * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
+        (WebKit::WebPopupMenuProxyGtk::showPopupMenu):
+
 2012-07-31  Anders Carlsson  <[email protected]>
 
         Prefer the Oracle Java plug-in over the Apple Java plug-in

Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp (124317 => 124318)


--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp	2012-08-01 09:23:46 UTC (rev 124317)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp	2012-08-01 09:24:34 UTC (rev 124318)
@@ -1197,9 +1197,9 @@
     g_signal_emit(webView, signals[RUN_AS_MODAL], 0, NULL);
 
     webView->priv->modalLoop = adoptGRef(g_main_loop_new(0, FALSE));
-    GDK_THREADS_ENTER();
+    gdk_threads_leave();
     g_main_loop_run(webView->priv->modalLoop.get());
-    GDK_THREADS_LEAVE();
+    gdk_threads_enter();
 }
 
 void webkitWebViewClosePage(WebKitWebView* webView)

Modified: trunk/Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.cpp (124317 => 124318)


--- trunk/Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.cpp	2012-08-01 09:23:46 UTC (rev 124317)
+++ trunk/Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.cpp	2012-08-01 09:24:34 UTC (rev 124318)
@@ -97,9 +97,9 @@
     // menu right after calling WebPopupMenuProxy::showPopupMenu().
     m_runLoop = adoptGRef(g_main_loop_new(0, FALSE));
 
-    GDK_THREADS_LEAVE();
+    gdk_threads_leave();
     g_main_loop_run(m_runLoop.get());
-    GDK_THREADS_ENTER();
+    gdk_threads_enter();
 
     m_runLoop.clear();
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to