Re: gtk_list_store_remove
- From: Jeffrey Goddard <moosewood mooseroot org>
- To: Harring Figueiredo <harringf yahoo com>
- Cc: GTK Apps Devel List <gtk-app-devel-list gnome org>
- Subject: Re: gtk_list_store_remove
- Date: Sat, 18 Jan 2003 23:25:55 -0600
yeah, did a "make clean' and it still didn't work. in the process of compiling
and installing the 2.2.0 stuff from the gtk.org website. having problems
getting pango upgrade to recognise what's going on. i think that once i
resolve that i will probably have this problem cleaned up also. must be
somethin' funky in my libs somewhere. :>)
thx for the ideas, been real helpful.
Jeffrey
On Saturday 18 January 2003 23:03, you wrote:
The only thing I can think of now is that you are builing/liking against
an old version of GTK where the gtk_list_store_remove() returns void.
Try to see what library it is linking against and see if it compiles OK
(Make sure you do a "make clean" first.)
Harring.
--- Jeffrey Goddard <moosewood mooseroot org> wrote:
I had forgotten to put the lookup_widget function from Glade in there,
and don't know why i changed the iter to a pointer. I just did a cut and
paste and then proceeded to hose it all up. _however_, when I cleaned it
up I still
get the same error from the compiler.
GtkWidget *week_select_store;
GtkTreeIter row_pointer;
gboolean ret_val_bool;
week_select_store = lookup_widget \
(GTK_WIDGET(Tracking_window), "week_select_store");
ret_val_bool = gtk_tree_model_get_iter_first \
(GTK_TREE_MODEL(week_select_store), &row_pointer);
while(ret_val_bool)
{
ret_val_bool = gtk_list_store_remove \
(GTK_LIST_STORE(week_select_store), &row_pointer);
}
Change To this and check to see if it works.
GtkWidget *week_select_store; <== Make sure this actually points to
a store.
GtkTreeIter row_pointer; <== This should not be a poiter !!! else
you will
have to allocate mem.
gboolean ret_val_bool;
ret_val_bool = gtk_tree_model_get_iter_first \
(GTK_TREE_MODEL(week_select_store), &row_pointer /* This should be
the
address &*/);
while(ret_val_bool)
{
ret_val_bool = gtk_list_store_remove \
(GTK_LIST_STORE(week_select_store), &row_pointer /* this again is
the address &*/);
}
Let me know the results.
Hope this helps.
Harring.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]