X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.cpp;fp=source%2Fentry.cpp;h=ed0d7e2081a270a90894277f619f33c4daf4aeb5;hb=878faa0c9283ee1e6e5e67b6ea1324cc52385742;hp=b00fc6bcdb3e4f4781b7bcb12dcd154a1de8cb61;hpb=21cb1e0b6fcc653d1298423dff5af5609389d415;p=libs%2Fgltk.git diff --git a/source/entry.cpp b/source/entry.cpp index b00fc6b..ed0d7e2 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -84,7 +84,7 @@ void Entry::insert(unsigned pos, const string &t) if(multiline) check_view_range(); - rebuild(); + mark_rebuild(); } void Entry::erase(unsigned pos, unsigned len) @@ -114,7 +114,7 @@ void Entry::erase(unsigned pos, unsigned len) if(multiline) check_view_range(); - rebuild(); + mark_rebuild(); } bool Entry::get_selection(unsigned &start, unsigned &end) const @@ -158,7 +158,7 @@ void Entry::set_multiline(bool m) add(*slider); slider->set_step(1); slider->signal_value_changed.connect(sigc::mem_fun(this, &Entry::slider_value_changed)); - rebuild(); + mark_rebuild(); } check_view_range(); } @@ -366,7 +366,7 @@ bool Entry::navigate(Navigation nav) void Entry::animate(const Time::TimeDelta &) { cursor_blink = !cursor_blink; - rebuild(); + mark_rebuild(); } void Entry::on_size_change() @@ -429,7 +429,7 @@ void Entry::set_edit_position(unsigned ep, bool select) if(multiline) check_view_range(); - rebuild(); + mark_rebuild(); } void Entry::erase_selection(bool emit_change) @@ -495,7 +495,7 @@ void Entry::slider_value_changed(double value) first_row = text.get_n_lines()-visible_rows-static_cast(value); if(first_row!=old_first_row) signal_scroll_position_changed.emit(first_row); - rebuild(); + mark_rebuild(); } }