* xterm.c (handle_one_xevent): Do not call to x_clear_area
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 17 Sep 2013 06:57:30 +0000 (10:57 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 17 Sep 2013 06:57:30 +0000 (10:57 +0400)
if GTK >= 2.7.0.

src/ChangeLog
src/xterm.c

index c3c64f7..f1ba30f 100644 (file)
@@ -5,6 +5,8 @@
        (fn_g_type_init) [!WINDOWSNT]: Define only if Glib < 2.36.0.
        * xsettings.c (init_gconf, init_gsettings): Do not check
        for g_type_init.
+       * xterm.c (handle_one_xevent): Do not call to x_clear_area
+       if GTK >= 2.7.0.
 
 2013-09-16  Jan Djärv  <jan.h.d@swipnet.se>
 
index 89f543a..90e58c8 100644 (file)
@@ -6151,7 +6151,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
       f = x_window_to_frame (dpyinfo, event->xexpose.window);
       if (f)
         {
-#ifdef USE_GTK
+#if ! GTK_CHECK_VERSION (2, 7, 0)
           /* This seems to be needed for GTK 2.6.  */
          x_clear_area (event->xexpose.display,
                        event->xexpose.window,