mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Revalidate the iter. (#156924, Murray Cumming)
2004-11-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Revalidate the iter. (#156924, Murray Cumming)
This commit is contained in:
parent
51663a12d8
commit
f6608ba671
@ -1,5 +1,8 @@
|
||||
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Revalidate the
|
||||
iter. (#156924, Murray Cumming)
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
|
||||
broken ClientMessage events. (#157056, Owen Taylor)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Revalidate the
|
||||
iter. (#156924, Murray Cumming)
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
|
||||
broken ClientMessage events. (#157056, Owen Taylor)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Revalidate the
|
||||
iter. (#156924, Murray Cumming)
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
|
||||
broken ClientMessage events. (#157056, Owen Taylor)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Revalidate the
|
||||
iter. (#156924, Murray Cumming)
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
|
||||
broken ClientMessage events. (#157056, Owen Taylor)
|
||||
|
||||
|
@ -3322,12 +3322,14 @@ gtk_text_buffer_delete_selection (GtkTextBuffer *buffer,
|
||||
* key with the cursor at the position specified by @iter. In the
|
||||
* normal case a single character will be deleted, but when
|
||||
* combining accents are involved, more than one character can
|
||||
* be deleted, and when precomposed character and accent combinations,
|
||||
* less than one character will be deleted.
|
||||
* be deleted, and when precomposed character and accent combinations
|
||||
* are involved, less than one character will be deleted.
|
||||
*
|
||||
* @iter must be at a cursor position.
|
||||
* Because the buffer is modified, all outstanding iterators become
|
||||
* invalid after calling this function; however, the @iter will be
|
||||
* re-initialized to point to the location where text was deleted.
|
||||
*
|
||||
* Return value: %TRUE if tbe buffer was modified
|
||||
* Return value: %TRUE if the buffer was modified
|
||||
|
||||
* Since: 2.6
|
||||
**/
|
||||
@ -3402,6 +3404,9 @@ gtk_text_buffer_backspace (GtkTextBuffer *buffer,
|
||||
|
||||
g_free (cluster_text);
|
||||
|
||||
/* Revalidate the users iter */
|
||||
*iter = start;
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user