开发者

model and view in gtk

hi every one i want to ask does it make any difference tha开发者_运维知识库t we make model first or view first in gtk tutorials if cant under stand that in some tutorials

gtk_cell_renderer_text_new();

is called after

gtk_list_store_new(N_COLUMNS, G_TYPE_STRING);

while in other place it is vise the versa

i am tolally confused kindly help me thanks


No, it doesn't matter. The G_TYPE_STRING column indicates the types of columns in the model; the GtkCellRendererText indicates the types of columns in the view. These can be different columns, a column in the model might not be displayed in the view at all, or two columns in the model can be displayed in one column in the view, or maybe some more complicated relationship.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜