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 #include "chrome/browser/ui/gtk/gtk_custom_menu_item.h" | 5 #include "chrome/browser/ui/gtk/gtk_custom_menu_item.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "chrome/browser/ui/gtk/gtk_custom_menu.h" | 8 #include "chrome/browser/ui/gtk/gtk_custom_menu.h" |
| 9 #include "ui/base/gtk/gtk_compat.h" |
9 | 10 |
10 // This method was autogenerated by the program glib-genmarshall, which | 11 // This method was autogenerated by the program glib-genmarshall, which |
11 // generated it from the line "BOOL:INT". Two different attempts at getting gyp | 12 // generated it from the line "BOOL:INT". Two different attempts at getting gyp |
12 // to autogenerate this didn't work. If we need more non-standard marshallers, | 13 // to autogenerate this didn't work. If we need more non-standard marshallers, |
13 // this should be deleted, and an actual build step should be added. | 14 // this should be deleted, and an actual build step should be added. |
14 void chrome_marshall_BOOLEAN__INT(GClosure* closure, | 15 void chrome_marshall_BOOLEAN__INT(GClosure* closure, |
15 GValue* return_value G_GNUC_UNUSED, | 16 GValue* return_value G_GNUC_UNUSED, |
16 guint n_param_values, | 17 guint n_param_values, |
17 const GValue* param_values, | 18 const GValue* param_values, |
18 gpointer invocation_hint G_GNUC_UNUSED, | 19 gpointer invocation_hint G_GNUC_UNUSED, |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 gpointer callback_data) { | 480 gpointer callback_data) { |
480 // Even though we're filtering |all_widgets| on GTK_IS_BUTTON(), this isn't | 481 // Even though we're filtering |all_widgets| on GTK_IS_BUTTON(), this isn't |
481 // equivalent to |button_widgets| because we also want the button-labels. | 482 // equivalent to |button_widgets| because we also want the button-labels. |
482 for (GList* i = menu_item->all_widgets; i && GTK_IS_BUTTON(i->data); | 483 for (GList* i = menu_item->all_widgets; i && GTK_IS_BUTTON(i->data); |
483 i = g_list_next(i)) { | 484 i = g_list_next(i)) { |
484 if (GTK_IS_BUTTON(i->data)) { | 485 if (GTK_IS_BUTTON(i->data)) { |
485 callback(GTK_WIDGET(i->data), callback_data); | 486 callback(GTK_WIDGET(i->data), callback_data); |
486 } | 487 } |
487 } | 488 } |
488 } | 489 } |
OLD | NEW |