Do not ignore the return value of g_slist_remove. gtkstyle.c changes

2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkclist.c:
    * gtk/gtkstyle.c (gtk_style_finalize):
    Do not ignore the return value of g_slist_remove.
    gtkstyle.c changes rubberstamped by Owen.


svn path=/trunk/; revision=20469
This commit is contained in:
Johan Dahlin 2008-06-19 14:08:59 +00:00 committed by Johan Dahlin
parent 9678ce2eb9
commit ce811f7cec
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkclist.c:
* gtk/gtkstyle.c (gtk_style_finalize):
Do not ignore the return value of g_slist_remove.
gtkstyle.c changes rubberstamped by Owen.
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines),

View File

@ -2826,7 +2826,7 @@ real_remove_row (GtkCList *clist,
clist->row_list = g_list_next (list);
if (clist->row_list_end == list)
clist->row_list_end = g_list_previous (list);
g_list_remove (list, clist_row);
list = g_list_remove (list, clist_row);
if (row < ROW_FROM_YPIXEL (clist, 0))
clist->voffset += clist->row_height + CELL_SPACING;

View File

@ -590,7 +590,7 @@ gtk_style_finalize (GObject *object)
if (style->styles)
{
if (style->styles->data != style)
g_slist_remove (style->styles, style);
style->styles = g_slist_remove (style->styles, style);
else
{
GSList *tmp_list = style->styles->next;