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

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: 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..b947ab2b0ed65d55f75b1c9ceb506172cacbce0f 100644
--- a/ui/base/gtk/gtk_compat.h
+++ b/ui/base/gtk/gtk_compat.h
@@ -34,6 +34,11 @@ 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)
Elliot Glaysher 2011/11/28 18:39:28 linebreak on the comma before Window; we have an 8
robert.bradford 2011/11/29 12:04:04 Done. And I also changed from a C style cast.
+{
+ return (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