finch/libgnt/gntmenuitemcheck.c

changeset 15991
1efb6bd8ba3f
parent 15886
13ed89c4f01d
child 17586
5beb8d987e84
child 18068
b6554e3c8224
equal deleted inserted replaced
15990:8f3cecb0bf47 15991:1efb6bd8ba3f
3 static GntMenuItemClass *parent_class = NULL; 3 static GntMenuItemClass *parent_class = NULL;
4 4
5 static void 5 static void
6 gnt_menuitem_check_class_init(GntMenuItemCheckClass *klass) 6 gnt_menuitem_check_class_init(GntMenuItemCheckClass *klass)
7 { 7 {
8 parent_class = GNT_MENUITEM_CLASS(klass); 8 parent_class = GNT_MENU_ITEM_CLASS(klass);
9 9
10 GNTDEBUG; 10 GNTDEBUG;
11 } 11 }
12 12
13 static void 13 static void
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

mercurial