Commit 3170d5a2 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

applied patch from Chris Wilson which replaces a useless loop with

2006-05-29  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktextview.c (gtk_text_view_target_list_notify): applied
	patch from Chris Wilson which replaces a useless loop with
	built-in access to free'd memory by a simple integer comparison.
	Fixes bug #342894.
parent 249cca43
2006-05-29 Michael Natterer <mitch@imendio.com>
* gtk/gtktextview.c (gtk_text_view_target_list_notify): applied
patch from Chris Wilson which replaces a useless loop with
built-in access to free'd memory by a simple integer comparison.
Fixes bug #342894.
2006-05-29 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): select
......
2006-05-29 Michael Natterer <mitch@imendio.com>
* gtk/gtktextview.c (gtk_text_view_target_list_notify): applied
patch from Chris Wilson which replaces a useless loop with
built-in access to free'd memory by a simple integer comparison.
Fixes bug #342894.
2006-05-29 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): select
......
......@@ -6883,16 +6883,13 @@ gtk_text_view_target_list_notify (GtkTextBuffer *buffer,
while (list)
{
GtkTargetPair *pair = list->data;
guint info;
list = g_list_next (list); /* get next element before removing */
for (info = GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS;
info >= GTK_TEXT_BUFFER_TARGET_INFO_TEXT;
info--)
if (pair->info >= GTK_TEXT_BUFFER_TARGET_INFO_TEXT &&
pair->info <= GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS)
{
if (pair->info == info)
gtk_target_list_remove (view_list, pair->target);
gtk_target_list_remove (view_list, pair->target);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment