Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |