Re: [gtkmm] Gtkmm-forge digest, Vol 1 #187 - 15 msgs
- From: Murray Cumming <murrayc usa net>
- To: Carl Nygard <cjnygard fast net>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Gtkmm-forge digest, Vol 1 #187 - 15 msgs
- Date: 09 Aug 2002 20:38:34 +0100
On Fri, 2002-08-09 at 20:30, Carl Nygard wrote:
> > +Yes, if both the start and end would be equal after the method has
> > +finished then there is no need to return both as well as the return
> > +iterator.
> > +
> > +Maybe you could use end() to show that the deletion has not happened.
> > +I don't think that end() would ever be the real "location where text
> > +was deleted." That's what find() would use to show that something was
> > +not found. Or maybe you could add an overload that takes a bool&
> > +parameter.
> >
>
> If one calls delete_text(myIter, end()), shouldn't this work fine, and
> also return end() as the iterator? In this case it would signify proper
> deletion of text from myIter to the end of the buffer.
We need to try this, I think. end() is a gtkmm-specific concept in
Gtk::TextView.
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]