Re: Please, help-me, show itens selected in tree_view

2004-06-16 Thread Olexiy Avramchenko
Jean BrÃfort wrote: You are right, it is not defined. I can't understand why. GtkTreePath is not GObject. These GTK_WHATEVER() macroces are not just typecasts, they *really* check object's type (when checks are not disabled). Olexiy ___ gtk-list mail

Re: RE:Re: Please, help-me, show itens selected in tree_view

2004-06-16 Thread Jean Bréfort
Le jeu 17/06/2004 Ã 05:27, Ranieri a Ãcrit : > path = GTK_TREE_PATH (l->data); > > GTK_TREE_PATH exist ? > You are right, it is not defined. I can't understand why. You can use: path = (GtkTreePath*) l->data; or: G_TYPE_CHECK_INSTANCE_CAST (l->data, GTK_TYPE_TREE_PATH, GtkTre

RE:Re: Please, help-me, show itens selected in tree_view

2004-06-16 Thread Ranieri
path = GTK_TREE_PATH (l->data); GTK_TREE_PATH exist ? Jean BrÃfort wrote: Le mer 16/06/2004 Ã 05:40, Ranieri a Ãcrit : This code was not correct. The error message is: test.c: In function `main': test.c:55: `CList' undeclared (first use in this function) I apologize, I mi

Re: Please, help-me, show itens selected in tree_view

2004-06-15 Thread Jean Bréfort
Le mer 16/06/2004 Ã 05:40, Ranieri a Ãcrit : > This code was not correct. > The error message is: > > test.c: In function `main': > test.c:55: `CList' undeclared (first use in this function) I apologize, I mistyped, it's GList, not CList > test.c:55: (Each undeclared identifier is reported only

Re: Please, help-me, show itens selected in tree_view

2004-06-15 Thread Ranieri
This code was not correct. The error message is: test.c: In function `main': test.c:55: `CList' undeclared (first use in this function) test.c:55: (Each undeclared identifier is reported only once test.c:55: for each function it appears in.) test.c:55: `l' undeclared (first use in this function) te

Re: Please, help-me, show itens selected in tree_view

2004-06-15 Thread Jean Bréfort
Oops, my code was not correct, the list was not freed :-( Here is a new (and hopefully better) version: GtkTreeModel *model2 = GTK_TREE_MODEL (model); CList *l = gtk_tree_selection_get_selected_rows (tree_view); GtkTreePath *path; GtkTreeIter iter; char *str; GList *list = l; while (l) { p

Re: Please, help-me, show itens selected in tree_view

2004-06-15 Thread Jean Bréfort
Le mar 15/06/2004 Ã 05:14, Ranieri a Ãcrit : > How to show to which item this chosen team in tree_view? > The part of the source code that is wrong is commented. > > Very Obliged GtkTreeModel *model2 = GTK_TREE_MODEL (model); CList *l = gtk_tree_selection_get_selected_rows (tree_view); GtkTre

Please, help-me, show itens selected in tree_view

2004-06-14 Thread Ranieri
How to show to which item this chosen team in tree_view? The part of the source code that is wrong is commented. Very Obliged #include #include int main(int argc, char **argv) { int i; GtkWidget *main_window; GtkWidget *fixed_mw; GtkWidget *tree_view; GtkWidget *scrolled