Konqueror Context Specific Popup Menu
Laurent Montel
montel at kde.org
Sun Nov 16 23:43:12 GMT 2003
Le Sunday 16 November 2003 01:08, David Faure a écrit :
> Hi Sashmit,
>
> This patch completely removed the "stop animations" item in the RMB.
>
> --- khtml/khtml_popupmenu.rc 18 Sep 2003 18:11:02 -0000 1.27
> +++ khtml/khtml_popupmenu.rc 26 Sep 2003 05:13:33 -0000
> @@ -22,8 +22,6 @@
> <Action name="viewimage" />
> </Menu>
> <Separator weakSeparator="1" />
> - <Action name="stopanimations" />
> - <Separator weakSeparator="1" />
> <Action name="security" />
> <Action name="setEncoding" />
> </Menu>
>
> However this is apparently not intentionnal, since the code says
> if ( url.isEmpty() && !isImage )
> {
> KAction* copyAction = KStdAction::copy( d->m_khtml->browserExtension(),
> SLOT( copy() ), actionCollection(), "copy" );
> copyAction->setText(i18n("&Copy Text"));
> copyAction->setEnabled(d->m_khtml->browserExtension()->isActionEnabled(
> "copy" )); actionCollection()->insert( khtml->actionCollection()->action(
> "selectAll" ) ); actionCollection()->insert(
> khtml->actionCollection()->action( "security" ) );
> actionCollection()->insert( khtml->actionCollection()->action(
> "setEncoding" ) ); new KAction( i18n( "Stop Animations" ), 0, this, SLOT(
> slotStopAnimations() ), actionCollection(), "stopanimations" );
> }
>
> (i.e. bring up stopanimations when clicking on the page itself, not on a
> link or image inside the page)
>
> Is it ok if I revert the khtml_popupmenu.rc patch?
I tested your patch and now it works.
For me it's a good idea to reverse it.
Thanks
Regards.
More information about the kfm-devel
mailing list