Lines Matching refs:start_pos

42 	gint start_pos;  member
52 gint start_pos; member
60 guint start_pos,
65 gint start_pos,
122 static UndoInfo *undo_object_new(gchar *text, gint start_pos, gint end_pos, in undo_object_new() argument
128 undoinfo->start_pos = start_pos; in undo_object_new()
210 static gint undo_merge(GList *list, guint start_pos, guint end_pos, in undo_merge() argument
235 if (end_pos - start_pos != 1 || in undo_merge()
245 if (last_undo->start_pos != end_pos && in undo_merge()
246 last_undo->start_pos != start_pos) { in undo_merge()
249 } else if (last_undo->start_pos == start_pos) { in undo_merge()
258 last_undo->start_pos = start_pos; in undo_merge()
263 if (last_undo->end_pos != start_pos) { in undo_merge()
292 gint start_pos, gint end_pos, in undo_add() argument
299 cm_return_if_fail(end_pos >= start_pos); in undo_add()
318 if (undo_merge(undostruct->undo, start_pos, end_pos, action, text)) in undo_add()
325 undoinfo = undo_object_new(g_strdup(text), start_pos, end_pos, action, in undo_add()
328 if (end_pos - start_pos != 1 || text[0] == '\n') in undo_add()
384 gtk_text_buffer_get_iter_at_offset(buffer, &iter, undoinfo->start_pos); in undo_undo()
388 gtk_text_buffer_get_iter_at_offset(buffer, &start_iter, undoinfo->start_pos); in undo_undo()
393 gtk_text_buffer_get_iter_at_offset(buffer, &start_iter, undoinfo->start_pos); in undo_undo()
407 gtk_text_buffer_get_iter_at_offset(buffer, &start_iter, undoinfo->start_pos); in undo_undo()
416 gtk_text_buffer_get_iter_at_offset(buffer, &start_iter, undoinfo->start_pos); in undo_undo()
479 gtk_text_buffer_get_iter_at_offset(buffer, &iter, redoinfo->start_pos); in undo_redo()
483 gtk_text_buffer_get_iter_at_offset(buffer, &start_iter, redoinfo->start_pos); in undo_redo()
488 gtk_text_buffer_get_iter_at_offset(buffer, &start_iter, redoinfo->start_pos); in undo_redo()
501 gtk_text_buffer_get_iter_at_offset(buffer, &iter, redoinfo->start_pos); in undo_redo()
510 gtk_text_buffer_get_iter_at_offset(buffer, &start_iter, redoinfo->start_pos); in undo_redo()
582 undostruct->wrap_info->start_pos = -1; in init_wrap_undo()
599 if (undostruct->wrap_info->start_pos == -1) in end_wrap_undo()
602 cm_return_if_fail(undostruct->wrap_info->end_pos > undostruct->wrap_info->start_pos); in end_wrap_undo()
603 …struct->wrap_info->end_pos - undostruct->wrap_info->len_change > undostruct->wrap_info->start_pos); in end_wrap_undo()
612 undostruct->wrap_info->start_pos, in end_wrap_undo()
621 undostruct->wrap_info->start_pos, in end_wrap_undo()
628 undostruct->wrap_info->start_pos, in end_wrap_undo()
633 undostruct->wrap_info->start_pos, in end_wrap_undo()
641 undostruct->wrap_info->start_pos, in end_wrap_undo()
663 if (undostruct->wrap_info->start_pos == -1 in update_wrap_undo()
664 || start < undostruct->wrap_info->start_pos) { in update_wrap_undo()
665 undostruct->wrap_info->start_pos = start; in update_wrap_undo()
738 gint start_pos, end_pos; in undo_delete_text_cb() local
745 start_pos = gtk_text_iter_get_offset(start); in undo_delete_text_cb()
749 update_wrap_undo(undostruct, text_to_delete, start_pos, end_pos, UNDO_ACTION_DELETE); in undo_delete_text_cb()
752 debug_print("del:undo add %d-%d\n", start_pos, end_pos); in undo_delete_text_cb()
753 undo_add(text_to_delete, start_pos, end_pos, UNDO_ACTION_DELETE, in undo_delete_text_cb()
784 guint start_pos, end_pos; in undo_get_selection() local
789 start_pos = gtk_text_iter_get_offset(&start_iter); in undo_get_selection()
793 if (end_pos < start_pos) { in undo_get_selection()
796 end_pos = start_pos; in undo_get_selection()
797 start_pos = swap_pos; in undo_get_selection()
801 *start = start_pos; in undo_get_selection()
806 if ((start_pos > 0 || end_pos > 0) && (start_pos != end_pos)) in undo_get_selection()