2006-02-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c:
* gtk/gtktextiter.c: Minor optimizations. (#332059, Arnaud Charlet)
2006-02-22 Matthias Clasen <mclasen@redhat.com>
2006-02-22 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktextbtree.c:
+ * gtk/gtktextiter.c: Minor optimizations. (#332059, Arnaud Charlet)
+
* gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
here, when changing the value of this property. (#331651)
* gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
here, when changing the value of this property. (#331651)
2006-02-22 Matthias Clasen <mclasen@redhat.com>
2006-02-22 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktextbtree.c:
+ * gtk/gtktextiter.c: Minor optimizations. (#332059, Arnaud Charlet)
+
* gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
here, when changing the value of this property. (#331651)
* gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
here, when changing the value of this property. (#331651)
GtkTextLineSegment *mark,
GtkTextIter *iter)
{
GtkTextLineSegment *mark,
GtkTextIter *iter)
{
- if (gtk_text_iter_get_line (iter) ==
- _gtk_text_btree_line_count (tree))
+ if (gtk_text_iter_get_line (iter) == _gtk_text_btree_line_count (tree))
gtk_text_iter_backward_char (iter);
}
gtk_text_iter_backward_char (iter);
}
{
if (tree->end_iter_line_stamp != tree->chars_changed_stamp)
{
{
if (tree->end_iter_line_stamp != tree->chars_changed_stamp)
{
- int n_lines;
- int real_line;
-
- /* n_lines is without the magic line at the end */
- n_lines = _gtk_text_btree_line_count (tree);
-
- g_assert (n_lines >= 1);
+ /* n_lines is without the magic line at the end */
+ g_assert (_gtk_text_btree_line_count (tree) >= 1);
tree->end_iter_line = _gtk_text_btree_get_line_no_last (tree, -1, &real_line);
tree->end_iter_line = _gtk_text_btree_get_line_no_last (tree, -1, &real_line);
return real->segment_byte_offset == 0 || real->segment_char_offset == 0;
}
return real->segment_byte_offset == 0 || real->segment_char_offset == 0;
}
static void
check_invariants (const GtkTextIter *iter)
{
static void
check_invariants (const GtkTextIter *iter)
{