GNOME Bugzilla – Bug 351301
0.108 doesn't build with gtk+ < 2.6
Last modified: 2006-08-14 21:28:38 UTC
The call to gtk_text_view_get_iter_at_position in body-pane.cc makes Pan unable to build for desktops with gtk+ < 2.6.
Looking closer, IMO we're using _at_position to work around a bug in how we handle pixmap detection at the current mouse location. We should handle it more like we do url detection. url detection is straightforward -- just ask the text buffer if the iter under the mouse is inside a 'url' tag region. pixbuf detection is more complicated for no good reason. We back up a character and see if we're at the beginning of a pixbuf region. Since both detection routines use our get_iter_at_pos() function, and one wants the actual pos and the other wants to back up a space for no good reason, IMO we should just fix the pixbuf detection code and throw away the code that backs up a space.
Created attachment 70869 [details] [review] 0.108 patch to fix the root problem