| Index: chrome/browser/gtk/gtk_chrome_button.cc
|
| ===================================================================
|
| --- chrome/browser/gtk/gtk_chrome_button.cc (revision 20108)
|
| +++ chrome/browser/gtk/gtk_chrome_button.cc (working copy)
|
| @@ -39,6 +39,13 @@
|
| GdkEventExpose* event);
|
|
|
| static void gtk_chrome_button_class_init(GtkChromeButtonClass* button_class) {
|
| + gtk_rc_parse_string(
|
| + "style \"chrome-button\" {"
|
| + " GtkButton::child-displacement-x = 0"
|
| + " GtkButton::child-displacement-y = 0"
|
| + "}"
|
| + "widget \"*chrome-button\" style \"chrome-button\"");
|
| +
|
| GObjectClass* gobject_class = G_OBJECT_CLASS(button_class);
|
| GtkWidgetClass* widget_class = reinterpret_cast<GtkWidgetClass*>(button_class);
|
| widget_class->expose_event = gtk_chrome_button_expose;
|
| @@ -73,6 +80,7 @@
|
| priv->paint_state = -1;
|
| priv->use_gtk_rendering = FALSE;
|
|
|
| + gtk_widget_set_name(GTK_WIDGET(button), "chrome-button");
|
| gtk_widget_set_app_paintable(GTK_WIDGET(button), TRUE);
|
|
|
| GTK_WIDGET_UNSET_FLAGS(button, GTK_CAN_FOCUS);
|
|
|