Tag: 滚动条

如何在C中禁用GtkTextView的编辑?

我尝试了这个,它生成一个TextView窗口: http://zetcode.com/tutorials/gtktutorial/gtktextview/ 但我不希望它是可编辑的。 顺便说一句,当文本溢出时,如何显示滚动条?

我如何理解以下含义?

引自这里 : if (to_end) { /* If we want to scroll to the end, including horizontal scrolling, * then we just create a mark with right gravity at the end of the * buffer. It will stay at the end unless explicitely moved with * gtk_text_buffer_move_mark. */ gtk_text_buffer_create_mark (buffer, “end”, &iter, FALSE); /* Add scrolling […]