[gtkmm] Do the TextBuffer operations really modify the iterators?
- From: ERDI Gergo <cactus cactus rulez org>
- To: GTKmm Mailing List <gtkmm-list gnome org>
- Subject: [gtkmm] Do the TextBuffer operations really modify the iterators?
- Date: Tue, 6 Aug 2002 23:00:29 +0200 (CEST)
Lots of TextBuffer operations have signatures like this:
void delete_text(iterator& start, iterator& end);
Do these really return something in start/end? It's very inconvenient that
I can't just write
buffer->delete_text (buffer->begin (), buffer->end ());
text.cc: In member function `void Guikachu::GUI::PropertyEditors::TextArea::update()':
text.cc:56: no matching function for call to `Gtk::TextBuffer::delete_text(Gtk::TextIter, Gtk::TextIter)'
/home/cactus/prog/gnome/gnome2/sandbox/include/gtkmm-2.0/gtkmm/textbuffer.h:171: candidates are: void Gtk::TextBuffer::delete_text(Gtk::TextIter&, Gtk::TextIter&)
If the signature was
void delete_text (const iterator &begin, const iterator &end);
it would work. So the real question is -- is this all deliberate (i.e.
is begin/end modified to some meaningful value when the methods return)
or just a typo?
--
.--= ULLA! =---------------------. `We are not here to give users what
\ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 2001
`---= cactus cactus rulez org =---'
Az ingyen dologok megérik az árukat.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]