Re: gtk+-1.2.xxx fatal error in gtktext.c
- From: Vladimir Tsichevski <wowa jet msk su>
- To: Valdis Kletnieks vt edu
- Cc: gtk-list gnome org
- Subject: Re: gtk+-1.2.xxx fatal error in gtktext.c
- Date: Wed, 24 Oct 2001 15:30:54 +0400
Hi Valdis,
>On Tue, 23 Oct 2001 13:29:14 +0400, Vladimir Tsichevski <wowa jet msk su> said:
>
...
>Could you re-send this with 'diff -c' instead? It makes it a LOT easier to
>apply patches if our line numbers dont agree with yours....
>--
> Valdis Kletnieks
> Operating Systems Analyst
> Virginia Tech
Here it is. Also note that the previous patch had a little typo in
it. This should be corrent.
Regards,
Vladimir V. Tsichevski
senior expert
==========%<==========%<==========%<==========%<==========%<==========%<==========%<
bash-2.04$ diff -c old/gtk+-1.2.10/gtk/gtktext.c gtk+-1.2.10/gtk/gtktext.c
*** old/gtk+-1.2.10/gtk/gtktext.c Thu Mar 15 23:15:12 2001
--- gtk+-1.2.10/gtk/gtktext.c Fri Oct 19 14:59:17 2001
***************
*** 3394,3404 ****
--- 3394,3413 ----
if (prop->length == 0)
{
+ gboolean cursor_mark_property_destroyed;
+
tmp = MARK_LIST_PTR (&text->point);
+ cursor_mark_property_destroyed =
+ (tmp == MARK_LIST_PTR (&text->cursor_mark));
+
is_first = tmp == text->text_properties;
MARK_LIST_PTR (&text->point) = g_list_remove_link (tmp, tmp);
+
+ if (cursor_mark_property_destroyed)
+ text->cursor_mark = find_mark (text, text->cursor_mark.index);
+
text->point.offset = 0;
if (GTK_WIDGET_REALIZED (text))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]