gtk_list_store_remove
- From: Jeffrey Goddard <moosewood mooseroot org>
- To: GTK Apps Devel List <gtk-app-devel-list gnome org>
- Subject: gtk_list_store_remove
- Date: Sat, 18 Jan 2003 15:28:48 -0600
i have the following code snippet:
___________________________________________________
GtkWidget *week_select_store;
GtkTreeIter *row_pointer;
gboolean ret_val_bool;
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);
}
___________________________________________________
I receive this compiler error:
sql_functions.c: In function `clear_display':
sql_functions.c:1067: void value not ignored as it ought to be
Line 1067 is the gtk_list_store_remove line in the while loop.
From the API docs:
Removes the given row from the list store. After being removed, iter is set to
be the next valid row, or invalidated if it pointed to the last row in
list_store.
list_store : A GtkListStore
iter : A valid GtkTreeIter
Returns : TRUE if iter is valid, FALSE if not.
So, to my way of thinking (which is, of course, quite possibly in left
field:>)) this should be quite valid code and the compiler should not be
whining about it. Anyone got a clue what's going on, and can point me in a
direction to remedy the problem?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]