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
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
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
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
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
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
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
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