remove some debug code that seems to have caused a breakpoint in valid
2001-09-07 Havoc Pennington <hp@redhat.com> * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some debug code that seems to have caused a breakpoint in valid cases * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev pointer on the first view when adding the second view, fixes crash when closing gtk-demo text test with active selection * gtk/gtktextbuffer.c (gtk_text_buffer_remove_selection_clipboard): don't leave dead clipboards in the list of clipboards - probably fixes #59836
This commit is contained in:
committed by
Havoc Pennington
parent
1bbf2ac7ee
commit
e8648181ed
@ -3069,6 +3069,9 @@ gtk_text_buffer_remove_selection_clipboard (GtkTextBuffer *buffer,
|
||||
{
|
||||
if (gtk_clipboard_get_owner (selection_clipboard->clipboard) == G_OBJECT (buffer))
|
||||
gtk_clipboard_clear (selection_clipboard->clipboard);
|
||||
|
||||
buffer->selection_clipboards = g_slist_remove (buffer->selection_clipboards,
|
||||
selection_clipboard);
|
||||
|
||||
g_free (selection_clipboard);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user