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_BROWSER_GTK_GTK_CHROME_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ |
6 #define CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ | 6 #define CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ |
7 | 7 |
8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
9 #include <gtk/gtkbutton.h> | 9 #include <gtk/gtkbutton.h> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 GType gtk_chrome_button_get_type(); | 39 GType gtk_chrome_button_get_type(); |
40 | 40 |
41 // Set the paint state to |state|. This overrides the widget's current state. | 41 // Set the paint state to |state|. This overrides the widget's current state. |
42 void gtk_chrome_button_set_paint_state(GtkChromeButton* button, | 42 void gtk_chrome_button_set_paint_state(GtkChromeButton* button, |
43 GtkStateType state); | 43 GtkStateType state); |
44 | 44 |
45 // Revert to using the widget's current state for painting. | 45 // Revert to using the widget's current state for painting. |
46 void gtk_chrome_button_unset_paint_state(GtkChromeButton* button); | 46 void gtk_chrome_button_unset_paint_state(GtkChromeButton* button); |
47 | 47 |
| 48 // Whether we should use custom theme images or let GTK take care of it. |
| 49 void gtk_chrome_button_set_use_gtk_rendering(GtkChromeButton* button, |
| 50 gboolean value); |
| 51 |
48 G_END_DECLS | 52 G_END_DECLS |
49 | 53 |
50 #endif // CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ | 54 #endif // CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ |
OLD | NEW |