qulogic/libgnt

Do not do unnecessary processing when updating text in a column.
next.minor
2007-10-30, Sadrul Habib Chowdhury
d40e6fa9a537
Parents 8f1b5e00faf4
Children 935d3321f12d
Do not do unnecessary processing when updating text in a column.
  • +2 -1
    gnttree.c
  • --- a/gnttree.c Fri Oct 26 13:31:26 2007 +0000
    +++ b/gnttree.c Tue Oct 30 09:17:50 2007 +0000
    @@ -1492,7 +1492,8 @@
    col->text = g_strdup(text ? text : "");
    }
    - if (get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0)
    + if (GNT_WIDGET_IS_FLAG_SET(GNT_WIDGET(tree), GNT_WIDGET_MAPPED) &&
    + get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0)
    redraw_tree(tree);
    }
    }