Re: Gtk List Store Problem



On Monday 06 October 2003 18:25, Jesper Mørk wrote:

Hi Jesper,

[snip]
 mid_column = gtk_tree_view_column_new_with_attributes(
    "Movie ID", cell,
    "text", 0,  <-----------
    NULL);

  title_column = gtk_tree_view_column_new_with_attributes(
    "Title", cell,
    "text", 0,  <-----------
    NULL);

  mediasource_column = gtk_tree_view_column_new_with_attributes(
    "Media", cell,
    "text", 0,   <-----------
    NULL);

  mediaformat_column = gtk_tree_view_column_new_with_attributes(
    "Media Format", cell,
    "text", 0,    <-----------
    NULL);

 .... snip ...

When I run my app, the columns is filled with the test1 string in all
the columns. Can't really figure out why? Any ideas?

The   "text", 0   bit means that the content of the cell should be the string 
that is found in model column 0 for each row, which is the string "test1". 
You probably meant to use  "text", 0,  then "text", 1,  then "text", 2, etc.

Cheers
-Tim








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]