Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: ui/base/gtk/gtk_compat.h

Issue 8632021: GTK: Port to gdk_x11_window_lookup_for_display (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Include gdkx.h needed for X11 symbols Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/x/active_window_watcher_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | ui/base/x/active_window_watcher_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698