forked from AuroraMiddleware/gtk
Clarify the code, gcc 4 complains about predecrement in MAX().
2005-06-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child): Clarify the code, gcc 4 complains about predecrement in MAX().
This commit is contained in:
parent
9e4d008d25
commit
58824aa9bb
@ -1,5 +1,8 @@
|
||||
2005-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
|
||||
Clarify the code, gcc 4 complains about predecrement in MAX().
|
||||
|
||||
* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
|
||||
prematurely unregister callbacks.
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
|
||||
Clarify the code, gcc 4 complains about predecrement in MAX().
|
||||
|
||||
* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
|
||||
prematurely unregister callbacks.
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
|
||||
Clarify the code, gcc 4 complains about predecrement in MAX().
|
||||
|
||||
* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
|
||||
prematurely unregister callbacks.
|
||||
|
||||
|
@ -827,7 +827,10 @@ gtk_tree_model_filter_fetch_child (GtkTreeModelFilter *filter,
|
||||
g_array_insert_val (level->array, i, elt);
|
||||
*index = i;
|
||||
|
||||
for (i = MAX (--i, 0); i < level->array->len; i++)
|
||||
if (i > 0)
|
||||
i--;
|
||||
|
||||
for ( ; i < level->array->len; i++)
|
||||
{
|
||||
FilterElt *e = &(g_array_index (level->array, FilterElt, i));
|
||||
if (e->children)
|
||||
|
Loading…
Reference in New Issue
Block a user