OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_COMMON_GTK_UTIL_H_ | 5 #ifndef CHROME_COMMON_GTK_UTIL_H_ |
6 #define CHROME_COMMON_GTK_UTIL_H_ | 6 #define CHROME_COMMON_GTK_UTIL_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "webkit/glue/window_open_disposition.h" | 10 #include "webkit/glue/window_open_disposition.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace gtk_util { | 23 namespace gtk_util { |
24 | 24 |
25 // Create a GtkBin with |child| as its child widget. This bin will paint a | 25 // Create a GtkBin with |child| as its child widget. This bin will paint a |
26 // border of color |color| with the sizes specified in pixels. | 26 // border of color |color| with the sizes specified in pixels. |
27 GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color, | 27 GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color, |
28 int top, int bottom, int left, int right); | 28 int top, int bottom, int left, int right); |
29 | 29 |
30 // Remove all children from this container. | 30 // Remove all children from this container. |
31 void RemoveAllChildren(GtkWidget* container); | 31 void RemoveAllChildren(GtkWidget* container); |
32 | 32 |
| 33 // Initialize some GTK settings so that our dialogs are consistent. |
| 34 void InitRCStyles(); |
| 35 |
33 } // namespace gtk_util | 36 } // namespace gtk_util |
34 | 37 |
35 #endif // CHROME_COMMON_GTK_UTIL_H_ | 38 #endif // CHROME_COMMON_GTK_UTIL_H_ |
OLD | NEW |