gtk-np

From: Tomeu Vizoso <tomeu_at_tomeuvizoso.net>
Date: Wed Nov 29 2006 - 23:17:48 CET

Hi all, here are some questions for Rob, but perhaps someone else have
an interesting idea.

1. As we want to be able to load dynamically a widget from any lib, I
think we cannot encode the lib where it resides in the mime type, as the
mime types will be requested by the browser before we know which lib and
widget the object tag wants.

So what I propose is to register only the mime type "embed/gobject" (or
whatever, haven't thought about it) and encode the lib and class as
parameters. For example:

<object type="embed/gobject" style="height:100px; width:100px">
        <param name="library" value="gtk-x11-2.0" />
        <param name="class" value="GtkToggleButton" />
        <param name="label" value="hallohallo" />
        <param name="active" value="true" />
</object>

What do you think? That would do it?

2. I have talked with Dom and he said that he also thinks that the
map-to-screen thing could go to "realize", thus eliminating one
dependence point on abiword.

3. The other point where the plugin depends on libabiword is
instantiating the abiword app:

XAP_Args XArgs = XAP_Args(PACKAGE);
_abiword_app = new AP_UnixApp(&XArgs, PACKAGE);
AP_Args Args = AP_Args(&XArgs, PACKAGE, _abiword_app);
Args.parsePoptOpts();

I have seen code in abiwidget that already does this. Do you think we
also can get rid of this?

Thanks,

Tomeu
Received on Wed Nov 29 23:18:49 2006

This archive was generated by hypermail 2.1.8 : Wed Nov 29 2006 - 23:18:50 CET