Commit ec6baad4 authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington
Browse files

rename from gtk_text_iter_reorder

2001-06-05  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextiter.c (gtk_text_iter_order): rename from
	gtk_text_iter_reorder
parent 56984ab2
...@@ -1528,6 +1528,14 @@ Creates a border around the arrows of a #GtkSpinButton. The type of border is de ...@@ -1528,6 +1528,14 @@ Creates a border around the arrows of a #GtkSpinButton. The type of border is de
@Returns: @Returns:
<!-- ##### FUNCTION gtk_text_iter_reorder ##### -->
<para>
</para>
@first:
@second:
<!-- ##### FUNCTION gtk_trace_referencing ##### --> <!-- ##### FUNCTION gtk_trace_referencing ##### -->
<para> <para>
Private: print debugging information while doing a gtk_object_ref() or Private: print debugging information while doing a gtk_object_ref() or
......
...@@ -71,8 +71,9 @@ Virtual function that moves the slider. Used for keybindings. ...@@ -71,8 +71,9 @@ Virtual function that moves the slider. Used for keybindings.
</para> </para>
@range: the #GtkRange @range: the #GtkRange
@step: how to move the slider @arg1:
<!-- # Unused Parameters # --> <!-- # Unused Parameters # -->
@step: how to move the slider
@arg2: @arg2:
<!-- ##### SIGNAL GtkRange::value-changed ##### --> <!-- ##### SIGNAL GtkRange::value-changed ##### -->
......
...@@ -100,8 +100,10 @@ format_value_callback (GtkScale *scale, ...@@ -100,8 +100,10 @@ format_value_callback (GtkScale *scale,
</para> </para>
@scale: the object which received the signal. @scale: the object which received the signal.
@value: value to format @arg1:
@Returns: allocated string representing @value @Returns: allocated string representing @value
<!-- # Unused Parameters # -->
@value: value to format
<!-- ##### ARG GtkScale:digits ##### --> <!-- ##### ARG GtkScale:digits ##### -->
<para> <para>
......
...@@ -781,15 +781,6 @@ types related to the text widget and how they work together. ...@@ -781,15 +781,6 @@ types related to the text widget and how they work together.
@Returns: @Returns:
<!-- ##### FUNCTION gtk_text_iter_reorder ##### -->
<para>
</para>
@first:
@second:
<!-- ##### FUNCTION gtk_text_iter_spew ##### --> <!-- ##### FUNCTION gtk_text_iter_spew ##### -->
<para> <para>
......
...@@ -569,7 +569,7 @@ _gtk_text_btree_delete (GtkTextIter *start, ...@@ -569,7 +569,7 @@ _gtk_text_btree_delete (GtkTextIter *start,
g_return_if_fail (_gtk_text_iter_get_btree (start) == g_return_if_fail (_gtk_text_iter_get_btree (start) ==
_gtk_text_iter_get_btree (end)); _gtk_text_iter_get_btree (end));
gtk_text_iter_reorder (start, end); gtk_text_iter_order (start, end);
tree = _gtk_text_iter_get_btree (start); tree = _gtk_text_iter_get_btree (start);
...@@ -1592,7 +1592,7 @@ _gtk_text_btree_tag (const GtkTextIter *start_orig, ...@@ -1592,7 +1592,7 @@ _gtk_text_btree_tag (const GtkTextIter *start_orig,
start = *start_orig; start = *start_orig;
end = *end_orig; end = *end_orig;
gtk_text_iter_reorder (&start, &end); gtk_text_iter_order (&start, &end);
tree = _gtk_text_iter_get_btree (&start); tree = _gtk_text_iter_get_btree (&start);
...@@ -2182,7 +2182,7 @@ _gtk_text_btree_get_text (const GtkTextIter *start_orig, ...@@ -2182,7 +2182,7 @@ _gtk_text_btree_get_text (const GtkTextIter *start_orig,
start = *start_orig; start = *start_orig;
end = *end_orig; end = *end_orig;
gtk_text_iter_reorder (&start, &end); gtk_text_iter_order (&start, &end);
retval = g_string_new (""); retval = g_string_new ("");
...@@ -2610,7 +2610,7 @@ _gtk_text_btree_get_selection_bounds (GtkTextBTree *tree, ...@@ -2610,7 +2610,7 @@ _gtk_text_btree_get_selection_bounds (GtkTextBTree *tree,
} }
else else
{ {
gtk_text_iter_reorder (&tmp_start, &tmp_end); gtk_text_iter_order (&tmp_start, &tmp_end);
if (start) if (start)
*start = tmp_start; *start = tmp_start;
......
...@@ -847,7 +847,7 @@ gtk_text_buffer_real_insert_range (GtkTextBuffer *buffer, ...@@ -847,7 +847,7 @@ gtk_text_buffer_real_insert_range (GtkTextBuffer *buffer,
src_buffer = gtk_text_iter_get_buffer (orig_start); src_buffer = gtk_text_iter_get_buffer (orig_start);
gtk_text_iter_reorder (&start, &end); gtk_text_iter_order (&start, &end);
range_start = start; range_start = start;
range_end = start; range_end = start;
...@@ -1130,7 +1130,7 @@ gtk_text_buffer_emit_delete (GtkTextBuffer *buffer, ...@@ -1130,7 +1130,7 @@ gtk_text_buffer_emit_delete (GtkTextBuffer *buffer,
if (gtk_text_iter_equal (start, end)) if (gtk_text_iter_equal (start, end))
return; return;
gtk_text_iter_reorder (start, end); gtk_text_iter_order (start, end);
/* Somewhat annoyingly, if you try to delete the final newline /* Somewhat annoyingly, if you try to delete the final newline
* the BTree will put it back; which means you can't deduce the * the BTree will put it back; which means you can't deduce the
...@@ -1213,7 +1213,7 @@ gtk_text_buffer_delete_interactive (GtkTextBuffer *buffer, ...@@ -1213,7 +1213,7 @@ gtk_text_buffer_delete_interactive (GtkTextBuffer *buffer,
gtk_text_buffer_begin_user_action (buffer); gtk_text_buffer_begin_user_action (buffer);
gtk_text_iter_reorder (start_iter, end_iter); gtk_text_iter_order (start_iter, end_iter);
start_mark = gtk_text_buffer_create_mark (buffer, NULL, start_mark = gtk_text_buffer_create_mark (buffer, NULL,
start_iter, TRUE); start_iter, TRUE);
...@@ -1966,7 +1966,7 @@ gtk_text_buffer_emit_tag (GtkTextBuffer *buffer, ...@@ -1966,7 +1966,7 @@ gtk_text_buffer_emit_tag (GtkTextBuffer *buffer,
g_return_if_fail (tag != NULL); g_return_if_fail (tag != NULL);
gtk_text_iter_reorder (&start_tmp, &end_tmp); gtk_text_iter_order (&start_tmp, &end_tmp);
if (apply) if (apply)
g_signal_emit (G_OBJECT (buffer), signals[APPLY_TAG], g_signal_emit (G_OBJECT (buffer), signals[APPLY_TAG],
...@@ -2148,7 +2148,7 @@ gtk_text_buffer_remove_all_tags (GtkTextBuffer *buffer, ...@@ -2148,7 +2148,7 @@ gtk_text_buffer_remove_all_tags (GtkTextBuffer *buffer,
first = *start; first = *start;
second = *end; second = *end;
gtk_text_iter_reorder (&first, &second); gtk_text_iter_order (&first, &second);
/* Get all tags turned on at the start */ /* Get all tags turned on at the start */
tags = gtk_text_iter_get_tags (&first); tags = gtk_text_iter_get_tags (&first);
...@@ -3021,7 +3021,7 @@ cut_or_copy (GtkTextBuffer *buffer, ...@@ -3021,7 +3021,7 @@ cut_or_copy (GtkTextBuffer *buffer,
else else
{ {
gtk_text_buffer_get_iter_at_mark (buffer, &end, anchor); gtk_text_buffer_get_iter_at_mark (buffer, &end, anchor);
gtk_text_iter_reorder (&start, &end); gtk_text_iter_order (&start, &end);
} }
} }
......
...@@ -4682,7 +4682,7 @@ gtk_text_iter_in_range (const GtkTextIter *iter, ...@@ -4682,7 +4682,7 @@ gtk_text_iter_in_range (const GtkTextIter *iter,
} }
/** /**
* gtk_text_iter_reorder: * gtk_text_iter_order:
* @first: a #GtkTextIter * @first: a #GtkTextIter
* @second: another #GtkTextIter * @second: another #GtkTextIter
* *
...@@ -4695,8 +4695,8 @@ gtk_text_iter_in_range (const GtkTextIter *iter, ...@@ -4695,8 +4695,8 @@ gtk_text_iter_in_range (const GtkTextIter *iter,
* *
**/ **/
void void
gtk_text_iter_reorder (GtkTextIter *first, gtk_text_iter_order (GtkTextIter *first,
GtkTextIter *second) GtkTextIter *second)
{ {
g_return_if_fail (first != NULL); g_return_if_fail (first != NULL);
g_return_if_fail (second != NULL); g_return_if_fail (second != NULL);
......
...@@ -256,7 +256,7 @@ gboolean gtk_text_iter_in_range (const GtkTextIter *iter, ...@@ -256,7 +256,7 @@ gboolean gtk_text_iter_in_range (const GtkTextIter *iter,
const GtkTextIter *end); const GtkTextIter *end);
/* Put these two in ascending order */ /* Put these two in ascending order */
void gtk_text_iter_reorder (GtkTextIter *first, void gtk_text_iter_order (GtkTextIter *first,
GtkTextIter *second); GtkTextIter *second);
/* Debug */ /* Debug */
......
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