Re: gtk_text_buffer_delete_interactive
- From: Havoc Pennington <hp redhat com>
- To: vishnu pobox com
- Cc: gtk-devel-list gnome org
- Subject: Re: gtk_text_buffer_delete_interactive
- Date: 10 Sep 2001 17:59:27 -0400
vishnu pobox com writes:
> In a GtkTextBuffer, i'm using TextTags with editable=false to
> represent "embedded objects." So i'd like to be able to customize
> gtk_text_buffer_delete_interactive to delete regions of uneditable
> text as a unit. For example:
>
> (1) The area between the angle brackets <vishnu pobox com>
> is uneditable (an email address).
>
> (2) i position the cursor directly before the email address
> and press delete.
>
> (3) The entire email address is deleted.
>
> Can i add a "delete-range-interactive" signal that mirrors
> the "delete-range" signal?
>
> If i can insert my code before "delete-range-interactive"
> then i can adjust the tags & iterators to do the right thing.
>
> Will such a patch be acceptable?
>
It should be possible to simply adjust the iterators in a signal
handler connected to delete_range. The deletion occurs in the
delete_range default handler which runs after your signal handlers.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]