application/main.c

changeset 46
4a5e0b9b6992
parent 45
cfeb2d5f1332
child 49
a80ba8741be6
equal deleted inserted replaced
45:cfeb2d5f1332 46:4a5e0b9b6992
86 UiList *list = ui_list_new(); 86 UiList *list = ui_list_new();
87 Person *p1 = ui_malloc(window->ctx, sizeof(Person)); 87 Person *p1 = ui_malloc(window->ctx, sizeof(Person));
88 Person *p2 = ui_malloc(window->ctx, sizeof(Person)); 88 Person *p2 = ui_malloc(window->ctx, sizeof(Person));
89 Person *p3 = ui_malloc(window->ctx, sizeof(Person)); 89 Person *p3 = ui_malloc(window->ctx, sizeof(Person));
90 Person *p4 = ui_malloc(window->ctx, sizeof(Person)); 90 Person *p4 = ui_malloc(window->ctx, sizeof(Person));
91 p1->name = "Some Name"; 91 p1->name = "Some Näme";
92 p1->mail = "mail@host.com"; 92 p1->mail = "mail@host.com";
93 p2->name = "Other Person"; 93 p2->name = "押井守";
94 p2->mail = "other.person@provider.com"; 94 p2->mail = "other.person@provider.com";
95 p3->name = "My Self"; 95 p3->name = "My Self";
96 p3->mail = "my@self.org"; 96 p3->mail = "my@self.org";
97 p4->name = "Gregory House"; 97 p4->name = "Gregory House";
98 p4->mail = "greg@pp"; 98 p4->mail = "greg@pp";
99 ui_list_append(list, p1); 99 ui_list_append(list, p1);
100 ui_list_append(list, p2); 100 ui_list_append(list, p2);
101 ui_list_append(list, p3); 101 ui_list_append(list, p3);
102 ui_list_append(list, p4); 102 ui_list_append(list, p4);
103 ui_list_append(list, p1);
104 ui_list_append(list, p1);
105 ui_list_append(list, p1);
106 ui_list_append(list, p1);
107 ui_list_append(list, p1);
108 ui_list_append(list, p1);
109 ui_list_append(list, p1);
110 ui_list_append(list, p1);
111 ui_list_append(list, p1);
112 ui_list_append(list, p1);
113 ui_list_append(list, p1);
114 ui_list_append(list, p1);
115 ui_list_append(list, p1);
116 ui_list_append(list, p1);
117 ui_list_append(list, p1);
118 ui_list_append(list, p1);
119 ui_list_append(list, p1);
120 ui_list_append(list, p1);
121 103
122 ui_table(window, list, model); 104 ui_table(window, list, model);
123 105 //ui_textarea(window, NULL);
124 106
125 ui_show(window); 107 ui_show(window);
126 ui_main(); 108 ui_main();
127 109
128 return (EXIT_SUCCESS); 110 return (EXIT_SUCCESS);

mercurial