ui/gtk/text.c

changeset 3
c04433993fbb
parent 2
ea89bbb0c4c8
equal deleted inserted replaced
2:ea89bbb0c4c8 3:c04433993fbb
171 // TODO: error 171 // TODO: error
172 } 172 }
173 return NULL; 173 return NULL;
174 } 174 }
175 175
176 UIWIDGET ui_textarea_gettextwidget(UIWIDGET textarea) {
177 return gtk_bin_get_child(GTK_BIN(textarea));
178 }
179
176 char* ui_textarea_get(UiText *text) { 180 char* ui_textarea_get(UiText *text) {
177 if(text->value.ptr) { 181 if(text->value.ptr) {
178 text->value.free(text->value.ptr); 182 text->value.free(text->value.ptr);
179 } 183 }
180 GtkTextBuffer *buf = text->obj; 184 GtkTextBuffer *buf = text->obj;

mercurial