[gtksourceview] Remove the extra mark as it is confusing.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtksourceview] Remove the extra mark as it is confusing.
- Date: Mon, 25 May 2009 17:08:38 -0400 (EDT)
commit 7e1829b9accf9d60823f80a0894ccfffe9bd1291
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon May 25 23:06:36 2009 +0200
Remove the extra mark as it is confusing.
---
tests/test-widget.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/tests/test-widget.c b/tests/test-widget.c
index a8bc50b..68adf87 100644
--- a/tests/test-widget.c
+++ b/tests/test-widget.c
@@ -1161,9 +1161,6 @@ button_press_cb (GtkWidget *widget, GdkEventButton *ev, gpointer user_data)
/* just take the first and delete it */
gtk_text_buffer_delete_mark (GTK_TEXT_BUFFER (buffer),
GTK_TEXT_MARK (mark_list->data));
- mark_list = g_slist_delete_link (mark_list, mark_list);
- gtk_text_buffer_delete_mark (GTK_TEXT_BUFFER (buffer),
- GTK_TEXT_MARK (mark_list->data));
}
else
{
@@ -1172,12 +1169,6 @@ button_press_cb (GtkWidget *widget, GdkEventButton *ev, gpointer user_data)
NULL,
mark_type,
&line_start);
- gtk_text_iter_set_line_offset (&line_start,
- gtk_text_iter_get_chars_in_line (&line_start) - 1);
- gtk_source_buffer_create_source_mark (buffer,
- NULL,
- mark_type,
- &line_start);
}
g_slist_free (mark_list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]