Index: ui/base/gtk/gtk_compat.h |
diff --git a/ui/base/gtk/gtk_compat.h b/ui/base/gtk/gtk_compat.h |
index e6c119a286e804f2ca6d8cf93a5e78d9559ce252..2b3531ab0db5da2c87526b215844cbc544135412 100644 |
--- a/ui/base/gtk/gtk_compat.h |
+++ b/ui/base/gtk/gtk_compat.h |
@@ -7,6 +7,7 @@ |
#pragma once |
#include <gtk/gtk.h> |
+#include <gdk/gdkx.h> |
Elliot Glaysher
2011/11/29 22:54:15
Please move this and the copmat function to their
robert.bradford
2011/11/30 16:38:27
Done! Moved that function to a gdk_x_compat.h head
|
// Google Chrome must depend on GTK 2.18, at least until the next LTS drops |
// (and we might have to extend which version of GTK we want to target due to |
@@ -34,6 +35,12 @@ inline void gdk_pixmap_get_size(GdkPixmap* pixmap, gint* width, gint* height) { |
inline GdkScreen* gdk_window_get_screen(GdkWindow* window) { |
return gdk_drawable_get_screen(GDK_DRAWABLE(window)); |
} |
+ |
+inline GdkWindow* gdk_x11_window_lookup_for_display(GdkDisplay* display, |
+ Window window) { |
+ return static_cast<GdkWindow*>(gdk_xid_table_lookup_for_display(display, |
+ window)); |
+} |
#endif |
#endif // UI_BASE_GTK_GTK_COMPAT_H_ |