OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/libgtk2ui/chrome_gtk_menu_subclasses.h" | 5 #include "chrome/browser/ui/libgtkui/chrome_gtk_menu_subclasses.h" |
6 | 6 |
7 G_DEFINE_TYPE(GtkCustomMenu, gtk_custom_menu, GTK_TYPE_MENU) | 7 G_DEFINE_TYPE(GtkCustomMenu, gtk_custom_menu, GTK_TYPE_MENU) |
8 | 8 |
9 static void gtk_custom_menu_init(GtkCustomMenu* menu) { | 9 static void gtk_custom_menu_init(GtkCustomMenu* menu) { |
10 } | 10 } |
11 | 11 |
12 static void gtk_custom_menu_class_init(GtkCustomMenuClass* klass) { | 12 static void gtk_custom_menu_class_init(GtkCustomMenuClass* klass) { |
13 } | 13 } |
14 | 14 |
15 GtkWidget* gtk_custom_menu_new() { | 15 GtkWidget* gtk_custom_menu_new() { |
16 return GTK_WIDGET(g_object_new(gtk_custom_menu_get_type(), NULL)); | 16 return GTK_WIDGET(g_object_new(gtk_custom_menu_get_type(), NULL)); |
17 } | 17 } |
18 | 18 |
19 G_DEFINE_TYPE(GtkCustomMenuItem, gtk_custom_menu_item, GTK_TYPE_MENU_ITEM) | 19 G_DEFINE_TYPE(GtkCustomMenuItem, gtk_custom_menu_item, GTK_TYPE_MENU_ITEM) |
20 | 20 |
21 static void gtk_custom_menu_item_init(GtkCustomMenuItem* item) { | 21 static void gtk_custom_menu_item_init(GtkCustomMenuItem* item) { |
22 } | 22 } |
23 | 23 |
24 static void gtk_custom_menu_item_class_init(GtkCustomMenuItemClass* klass) { | 24 static void gtk_custom_menu_item_class_init(GtkCustomMenuItemClass* klass) { |
25 } | 25 } |
26 | 26 |
27 GtkWidget* gtk_custom_menu_item_new() { | 27 GtkWidget* gtk_custom_menu_item_new() { |
28 return GTK_WIDGET(g_object_new(gtk_custom_menu_item_get_type(), NULL)); | 28 return GTK_WIDGET(g_object_new(gtk_custom_menu_item_get_type(), NULL)); |
29 } | 29 } |
OLD | NEW |