| 37 0, /* n_preallocs */ |
37 0, /* n_preallocs */ |
| 38 gnt_menuitem_check_init, /* instance_init */ |
38 gnt_menuitem_check_init, /* instance_init */ |
| 39 NULL /* value_table */ |
39 NULL /* value_table */ |
| 40 }; |
40 }; |
| 41 |
41 |
| 42 type = g_type_register_static(GNT_TYPE_MENUITEM, |
42 type = g_type_register_static(GNT_TYPE_MENU_ITEM, |
| 43 "GntMenuItemCheck", |
43 "GntMenuItemCheck", |
| 44 &info, 0); |
44 &info, 0); |
| 45 } |
45 } |
| 46 |
46 |
| 47 return type; |
47 return type; |
| 48 } |
48 } |
| 49 |
49 |
| 50 GntMenuItem *gnt_menuitem_check_new(const char *text) |
50 GntMenuItem *gnt_menuitem_check_new(const char *text) |
| 51 { |
51 { |
| 52 GntMenuItem *item = g_object_new(GNT_TYPE_MENUITEM_CHECK, NULL); |
52 GntMenuItem *item = g_object_new(GNT_TYPE_MENU_ITEM_CHECK, NULL); |
| 53 GntMenuItem *menuitem = GNT_MENUITEM(item); |
53 GntMenuItem *menuitem = GNT_MENU_ITEM(item); |
| 54 |
54 |
| 55 menuitem->text = g_strdup(text); |
55 menuitem->text = g_strdup(text); |
| 56 return item; |
56 return item; |
| 57 } |
57 } |
| 58 |
58 |