Compatibility fix for my automatically created toolbar action

Joseph Wenninger jowenn at kde.org
Sun Jun 30 17:19:55 BST 2002


Hi

Bernd pointed me to a compatibility issue with my new auto updating "Show 
Toolbar" menu.

I'm attaching a small compatibility patch, which removes my action 
automatically, if an application uses the KStdAction::showToolbar(.....) 
functions with the mainwindows actioncollection.

Does someone see a problem with that patch ? It should be binary and source 
compatible and solve problems with old applications using eg:

  KStdAction::configureToolbars(parent, SLOT(mySlot()), actionCollection)
    ->setToolTip("mytooltip")

I'll adapt kdelibs/kdebase/.. than not to use the KStdAction::ShowToolbar 
functions. At the moment they use them, although they are just ignored. 
(without the patch)

Kind regards
Joseph Wenninger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jw_patch2.diff
Type: text/x-diff
Size: 6693 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020630/2ca6897b/attachment.diff>


More information about the kde-core-devel mailing list