Re: Gtk List Store Problem
- From: Tim Müller <zen18864 zen co uk>
- To: Jesper Mørk <geo fusserne dk>, gtk-app-devel-list gnome org
- Subject: Re: Gtk List Store Problem
- Date: Mon, 6 Oct 2003 19:12:46 +0100
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]