ui/gtk/text.c

changeset 59
eb6611be50c7
parent 56
87e3a5dc66dd
child 65
4697592e24ba
equal deleted inserted replaced
58:2b124f8ebd95 59:eb6611be50c7
93 gtk_text_view_set_left_margin(GTK_TEXT_VIEW(text_area), 2); 93 gtk_text_view_set_left_margin(GTK_TEXT_VIEW(text_area), 2);
94 gtk_text_view_set_right_margin(GTK_TEXT_VIEW(text_area), 2); 94 gtk_text_view_set_right_margin(GTK_TEXT_VIEW(text_area), 2);
95 95
96 // add 96 // add
97 UiContainer *ct = uic_get_current_container(obj); 97 UiContainer *ct = uic_get_current_container(obj);
98 ct->add(ct, scroll_area); 98 ct->add(ct, scroll_area, TRUE);
99 99
100 // bind value 100 // bind value
101 if(value) { 101 if(value) {
102 GtkTextBuffer *buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_area)); 102 GtkTextBuffer *buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_area));
103 103

mercurial