Hi, If this is received then hooray! This message got through on the third try.
I'm in the process of writing the gtk+ search/replace dialog, and have hit a problem which has frustrated me for some hours. I'm not too experienced with C++ (as opposed to C), so forgive me if I'm missing something obvious. typeid is reporting the return type of bcview() in GSearch to be N3lyx8frontend8xformsBCE, which I assume is the name-mangled version of something related to xforms. However, a similar test in GMathPanel gives N3lyx8frontend3GBCE which is more correct (GBC being the Gtk-ified GuiBC). This is causing segfaults along the lines of: #0 0x4096e206 in fl_activate_composite () from /usr/X11R6/lib/libforms.so.1 #1 0x4099a09c in fl_activate_object () from /usr/X11R6/lib/libforms.so.1 #2 0x082ab012 in lyx::frontend::setEnabled (ob=0x8714758) at xforms_helpers.C:99 #3 0x082aa4db in lyx::frontend::xformsBC::setWidgetEnabled (this=0x86e3c80, obj=0x29) at xformsBC.C:40 #4 0x082aab3b in lyx::frontend::GuiBC<flobjs_, flobjs_>::refreshReadOnly ( this=0x86e3c80) at stl_list.h:167 #5 0x08301409 in lyx::frontend::ButtonController::readOnly (this=0x86f1298, ro=false) at ButtonController.C:113 #6 0x082f5a84 in lyx::frontend::Dialog::show (this=0x86dd818, [EMAIL PROTECTED]) at Dialog.h:82 So it's segfaulting because it's trying to feed xforms my gtk+ objects. GSearch code attached at [1,2], which doesn't even mention any xforms stuff whatever. For contrast (or lack thereof) my class is: class GSearch : public GViewCB<ControlSearch, GViewGladeB> Where the (working) MathPanel is: class GMathPanel : public GViewCB<ControlMath, GViewGladeB> I just can't find what I'm doing differently to cause this problem. Any hints appreciated. John 1. http://icculus.org/~jcspray/GSearch.C 2. http://icculus.org/~jcspray/GSearch.h