Correct blacklist entry message
[chromium-blink-merge.git] / ui / gfx / gdk_compat.h
blobb11d7795831a194dd753ae71c3663ad8cbdf247a
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_GFX_GDK_COMPAT_H_
6 #define UI_GFX_GDK_COMPAT_H_
8 #include <gtk/gtk.h>
9 #include <gdk/gdkx.h>
11 // Google Chrome must depend on GTK 2.18, at least until the next LTS drops
12 // (and we might have to extend which version of GTK we want to target due to
13 // RHEL). To make our porting job for GTK3 easier, we define all the methods
14 // that replace deprecated APIs in this file and then include it everywhere.
16 // This file is organized first by version, and then with each version,
17 // alphabetically by method.
19 #if !GTK_CHECK_VERSION(2, 24, 0)
20 inline GdkWindow* gdk_x11_window_lookup_for_display(GdkDisplay* display,
21 Window window) {
22 return static_cast<GdkWindow*>(gdk_xid_table_lookup_for_display(display,
23 window));
25 #endif
27 #endif // UI_GFX_GDK_COMPAT_H_