Re: gtk_text weird behaviour
- From: Anders Melchiorsen <and kampsax dtu dk>
- To: gtk-devel-list redhat com
- Cc: olivier lx student wau nl
- Subject: Re: gtk_text weird behaviour
- Date: 14 Feb 2000 01:24:43 +0100
[Sorry - resending with hopefully better headers]
olivier@lx.student.wau.nl wrote:
> The segfault only happens if the scollbar position is > 0 or the cursor
> position is > 0. Play around to see the problem. In the .tar.gz the
> CRAPPY_FIX is defined, so that version is stable-but-slow.
Without checking out your code, the problems sound like ones I have
been having. The following patch (which has been accepted and applied
for GTK+ 1.3 and hopefully 1.2.7) fixes it for me.
Search for my name and gtktext in the archives some months back to get
a more complete story.
--- gtk+-1.2.6_orig/gtk/gtktext.c Sat Sep 4 00:20:39 1999
+++ gtk+-1.2.6/gtk/gtktext.c Tue Dec 7 03:25:49 1999
@@ -903,6 +903,7 @@
g_return_if_fail (GTK_IS_TEXT (text));
text->freeze_count++;
+ undraw_cursor (text, FALSE);
}
void
@@ -917,6 +918,7 @@
recompute_geometry (text);
gtk_widget_queue_draw (GTK_WIDGET (text));
}
+ draw_cursor (text, FALSE);
}
void
--
Regards, Anders
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]