如果树列表值的语句?

时间:2014-05-05 11:29:02

标签: c gtk

我如何编写if语句来检查" COL_NUMBER"例如" 3",这是我得到的代码:

gtk_list_store_append (store, &iter);
  gtk_list_store_set (store, &iter,
                      COL_NUMBER, 3,
                      -1);

renderer = gtk_cell_renderer_text_new ();
  gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (view),
                                               0,      
                                               "Number",  
                                               renderer,
                                               "text", COL_NUMBER,
                                               NULL);

1 个答案:

答案 0 :(得分:0)

从树模型中获取值,使用gtk_tree_model_get();