About Google gadgets on plasma

71 views
Skip to first unread message

Dong Tiger

unread,
Jun 5, 2008, 10:49:37 PM6/5/08
to ase...@kde.org, google-gadgets...@googlegroups.com
Hi Aaron,

I am a developer of google gadgets for linux (GGL). I've read your blog post about ggl. We are very interested in integrating GGL with plasma. Actually, we have written some code which can let Google gadgets running as plasmoids. These code implement a script engine and a package engine, almost as you described in your blog.

After KDE's WoC integration, we decided to stop working on it till things calm down. Now the first beta of KDE 4.1 was just out. I think it's the right time to start it again. We'll make these code work again and then release it to public.

We are looking forward to more cooperation with KDE's team.

BTW: I am a long time kde user. I have to say your guys are doing great.

Regards,

Tiger


Dong Tiger

unread,
Jun 6, 2008, 6:54:55 AM6/6/08
to Aaron J. Seigo, google-gadgets...@googlegroups.com
Definitely make sense.

I just spent a few hours to make the old code work again and tried to adopt WoC approach.

At first, I tried with following code in GglAppletScript :

    QGraphicsProxyWidget* proxy = new QGraphicsProxyWidget(applet_); 
    proxy->setWidget(widget_);    // widget_ is QtViewWidget which shows a google gadget view
    proxy->show();
    proxy->setParent(applet_);

And in GglAppletScript::paintInterface, I do nothing.

With this code, Google gadgets are shown outside plasmoid applets. So I modified the above code as following:

    QGraphicsProxyWidget* proxy = new QGraphicsProxyWidget(applet_);
    proxy->setWidget(widget_);
    proxy->show();
    QGraphicsLinearLayout *layout = new QGraphicsLinearLayout(applet_);
    layout->setContentsMargins(0,0,0,0);
    layout->setSpacing(0);
    layout->addItem(proxy);
    applet_->setLayout(layout);

Then I got blank plasmoids. The QtViewWidget didn't show up at all. So can you give me some hints about the right way to handle WoC within AppletScript?

2008/6/6 Aaron J. Seigo <ase...@kde.org>:
On Thursday 05 June 2008, Dong Tiger wrote:
> After KDE's WoC integration, we decided to stop working on it till things
> calm down. Now the first beta of KDE 4.1 was just out. I think it's the
> right time to start it again. We'll make these code work again and then
> release it to public.

that is beyond awesome. if it makes sense, we could also host the plasma
integration code in our svn alongside the other widget bridges.

--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech


Reply all
Reply to author
Forward
0 new messages