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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/base/x/active_window_watcher_x.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_GTK_GTK_COMPAT_H_ 5 #ifndef UI_BASE_GTK_GTK_COMPAT_H_
6 #define UI_BASE_GTK_GTK_COMPAT_H_ 6 #define UI_BASE_GTK_GTK_COMPAT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 16 matching lines...) Expand all
27 #endif 27 #endif
28 28
29 #if !GTK_CHECK_VERSION(2, 24, 0) 29 #if !GTK_CHECK_VERSION(2, 24, 0)
30 inline void gdk_pixmap_get_size(GdkPixmap* pixmap, gint* width, gint* height) { 30 inline void gdk_pixmap_get_size(GdkPixmap* pixmap, gint* width, gint* height) {
31 gdk_drawable_get_size(GDK_DRAWABLE(pixmap), width, height); 31 gdk_drawable_get_size(GDK_DRAWABLE(pixmap), width, height);
32 } 32 }
33 33
34 inline GdkScreen* gdk_window_get_screen(GdkWindow* window) { 34 inline GdkScreen* gdk_window_get_screen(GdkWindow* window) {
35 return gdk_drawable_get_screen(GDK_DRAWABLE(window)); 35 return gdk_drawable_get_screen(GDK_DRAWABLE(window));
36 } 36 }
37
38 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.
39 {
40 return (GdkWindow*)gdk_xid_table_lookup_for_display(display, window);
41 }
37 #endif 42 #endif
38 43
39 #endif // UI_BASE_GTK_GTK_COMPAT_H_ 44 #endif // UI_BASE_GTK_GTK_COMPAT_H_
OLDNEW
« 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