GNOME Bugzilla – Bug 118459
TextBuffer::get_selection_bounds() should return bool value.
Last modified: 2004-12-22 21:47:04 UTC
now TextBuffer::get_selection_bounds() return void, i think it is better return bool just like gtk+ do.
I think you are probably correct. The bool says whether the selection is greater than 0 characters: http://developer.gnome.org/doc/API/2.0/gtk/GtkTextBuffer.html#gtk-text-buffer-get-selection-bounds We probably thought that the iters would be equal to end() if something failed, but I think the iters could have valid equal values even if the selection is 0. It looks like we also need to add a bool get_selection_bounds() overload, with no parameters, using NULL values to GTK+. Thank you.
By the way, you can check whether the iters are equal. It should give the same information.
Fixed in cvs for gtkmm 2.4, though it is not really necessary. Thanks.