problem with rf

Richard Wirth <[email protected]> Tue, 15 Jun 2004 15:52:01 +0200
Newsgroups gmane.comp.version-control.cvs.gui.devel
Organization Ing.Büro Richard Wirth
Message-ID <[email protected]>
Hello Folks,

 I discoverd a problem in the rf.
 Toggled UI objects (stateful) are handled the same way stateless
 objects are. This results in incosistencies between the internal
 state of gcvs and the state shown at the user interface.
 This hits UCvsFrame.cpp if one clicks OnViewModified(). In this case
 "kFilterChanged, kFilterAdded, kFilterRemoved, kFilterConflicts" are
 changed. Afterwards an UpdateUI() finds the internal state of these
 modied and tries to set the displayed stata at UI site respective. But
 this results in a new button pressed event for OnViewConflict() and
 all the others, which in turn change the state not being
 "kFilterModified" any more. So we get a perfect recursion!

 So what to do?

 It is not possible to prevent gtk from emiting a ButtonPressedEvent
 when the state of a ToggleButton is changed programaticaly. But in
 uwidget::gtkclicked() I can determine the type of clicked button. And
 it ist possible to get the state of the ToggleButton.
 So it would be possible to define a new EV_CMD_TOGGLED and pass the
 state along with this.
 But that requires a lot of changes throu the whole code.
 Has anybody any better solution???

-- 
Best regards,
 Richard                          mailto:[email protected]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/NhFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/cvsgui-dev/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/