* xfns.c (x_get_net_workarea): Define only if !GTK || GTK<3.4.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2013 19:25:42 +0000 (12:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2013 19:25:42 +0000 (12:25 -0700)
This fixes a problem introduced by my previous change.

src/ChangeLog
src/xfns.c

index cfa10f7..4c64f14 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xfns.c (x_get_net_workarea): Define only if !GTK || GTK<3.4.
+       This fixes a problem introduced by my previous change.
+
 2013-05-07  Glenn Morris  <rgm@gnu.org>
 
        * lread.c (readchar): Don't read from a dead buffer.  (Bug#14280)
index 8254f3c..2164ff5 100644 (file)
@@ -3804,6 +3804,7 @@ If omitted or nil, that stands for the selected frame's display.  */)
    Return false if and only if the workarea information cannot be
    obtained via the _NET_WORKAREA root window property.  */
 
+#if !defined USE_GTK || GTK_MAJOR_VERSION < 3 + (GTK_MINOR_VERSION < 4)
 static bool
 x_get_net_workarea (struct x_display_info *dpyinfo, XRectangle *rect)
 {
@@ -3861,6 +3862,7 @@ x_get_net_workarea (struct x_display_info *dpyinfo, XRectangle *rect)
 
   return result;
 }
+#endif
 
 #ifndef USE_GTK