Mercurial > pidgin
diff console/libgnt/gnttree.c @ 13888:9d66969a2e32
[gaim-migrate @ 16369]
Get rid of a whole lot of compile warnings.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 28 Jun 2006 19:12:38 +0000 |
parents | 5c750626eaa5 |
children | a621329e8c85 |
line wrap: on
line diff
--- a/console/libgnt/gnttree.c Wed Jun 28 18:50:33 2006 +0000 +++ b/console/libgnt/gnttree.c Wed Jun 28 19:12:38 2006 +0000 @@ -47,7 +47,7 @@ get_next(GntTreeRow *row) { if (row == NULL) - return; + return NULL; return _get_next(row, !row->collapsed); } @@ -229,7 +229,6 @@ gnt_tree_draw(GntWidget *widget) { GntTree *tree = GNT_TREE(widget); - int bottom; scrollok(widget->window, TRUE); wsetscrreg(widget->window, 0, widget->priv.height - 1); @@ -330,8 +329,6 @@ static void gnt_tree_class_init(GntTreeClass *klass) { - GObjectClass *obj_class = G_OBJECT_CLASS(klass); - parent_class = GNT_WIDGET_CLASS(klass); parent_class->destroy = gnt_tree_destroy; parent_class->draw = gnt_tree_draw; @@ -432,7 +429,8 @@ GntWidget *widget = GNT_WIDGET(tree); int ret = widget->priv.height; if (!GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_NO_BORDER)) - widget->priv.height -= 2; + ret -= 2; + return ret; } void gnt_tree_scroll(GntTree *tree, int count)