trace logs added
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 8 May 2001 10:56:59 +0000 (10:56 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 8 May 2001 10:56:59 +0000 (10:56 +0000)
ChangeLog.claws
src/gtkstext.c

index f150e8449d7c71b5603fea3d27a0724dd3fce149..eebfd74e446215b86417afb2ba632e9e6379df23 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-08 [alfons]
+
+       * src/gtkstext.c: trace logs added 
+
 2001-05-08 [sergey]
 
        * src/prefs_common.[ch]: added option to enable/disable GnuPG
index d9c6d6e34db309dee25e9c9dddd5d7e2143834ee..a46b3def0f7c2e049f752a6059a73f57c04c7562 100644 (file)
@@ -4314,6 +4314,19 @@ typedef struct {
        LineParams   lp;
 } fdrf; 
 
+#if defined(AHX_DEBUG)
+static void print_line(GtkSText *text, guint start, guint end)
+{
+       gchar *buf = alloca(2048), *walk = buf;
+
+       memset(buf, 0, 2048);
+       for (; start <= end; start++) {
+               *walk++ = GTK_STEXT_INDEX(text, start);
+       }               
+       XDEBUG( ("%s", buf) );  
+}
+#endif
+
 static gint forward_display_row_fetcher(GtkSText *text,
                                                                                LineParams *lp,
                                                                                fdrf       *data)
@@ -4323,6 +4336,7 @@ static gint forward_display_row_fetcher(GtkSText *text,
                                __FILE__, __LINE__, data->start, data->end, lp->start.index, lp->end.index) );
                data->lp = *lp;
                data->completed = TRUE;
+               print_line(text, lp->start.index, lp->end.index);
                return TRUE;
        }
        else if (range_intersect(data->start, data->end, lp->start.index, lp->end.index)) {