Small cleanup. (#305539, Paolo Borelli)

2005-06-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
	cleanup.  (#305539, Paolo Borelli)
This commit is contained in:
Matthias Clasen 2005-06-09 18:36:58 +00:00 committed by Matthias Clasen
parent 8a86bcebc8
commit e09c960885
4 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2005-06-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
cleanup. (#305539, Paolo Borelli)
2005-06-09 Rodrigo Moya <rodrigo@novell.com>
* configure.in: added cairo to list of $GTK_PACKAGES.

View File

@ -1,3 +1,8 @@
2005-06-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
cleanup. (#305539, Paolo Borelli)
2005-06-09 Rodrigo Moya <rodrigo@novell.com>
* configure.in: added cairo to list of $GTK_PACKAGES.

View File

@ -1,3 +1,8 @@
2005-06-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
cleanup. (#305539, Paolo Borelli)
2005-06-09 Rodrigo Moya <rodrigo@novell.com>
* configure.in: added cairo to list of $GTK_PACKAGES.

View File

@ -2434,7 +2434,7 @@ _gtk_text_btree_char_is_invisible (const GtkTextIter *iter)
{
gboolean invisible = FALSE; /* if nobody says otherwise, it's visible */
int deftagCnts[LOTSA_TAGS];
int deftagCnts[LOTSA_TAGS] = { 0, };
int *tagCnts = deftagCnts;
GtkTextTag *deftags[LOTSA_TAGS];
GtkTextTag **tags = deftags;
@ -2457,15 +2457,10 @@ _gtk_text_btree_char_is_invisible (const GtkTextIter *iter)
/* almost always avoid malloc, so stay out of system calls */
if (LOTSA_TAGS < numTags)
{
tagCnts = g_new (int, numTags);
tagCnts = g_new0 (int, numTags);
tags = g_new (GtkTextTag*, numTags);
}
for (i=0; i<numTags; i++)
{
tagCnts[i] = 0;
}
/*
* Record tag toggles within the line of indexPtr but preceding
* indexPtr.