Re: silly bug of libbonobo; bug 104931
- From: "Gustavo J. A. M. " Carneiro <gjc inescporto pt>
- To: Kang Jeong-Hee <Keizi mail co kr>
- Cc: "gnome-components-list gnome org" <gnome-components-list gnome org>
- Subject: Re: silly bug of libbonobo; bug 104931
- Date: 18 Feb 2003 17:07:46 +0000
On Mon, 2003-02-17 at 23:51, Kang Jeong-Hee wrote:
> Hi.
>
> http://bugzilla.gnome.org/show_bug.cgi?id=104931
> is the bug report for 'unexpected condition in query make task frustrated'.
>
> e.g.
> cvs/libbonoboui/tests/test-moniker has -c option for querying Bonobo/Control.
> so ./test-moniker -c somemoniker query bonobo-activation-server for that.
>
> in this command, libbonobo make condition not only of Bonobo/Control
> but also of Bonobo/Stream, that is not intended by user.
> so almost of bonobo controls that support proper mime type
> filtered out by the condition 'Bonobo/Stream'.
I don't have the expertise of Michael. However, I see nothing wrong.
With the moniker string 'file:some.avi', you are asking for a Bonobo
Control which can open the file 'some.avi'. In the Bonobo framework,
only components with the Bonobo::PersistStream interface can open files.
Well, there are other interfaces it could use, but the file: moniker was
designed this way.
Nautilus uses its own, private interface, namely Nautilus::View. I bet
lumiére implements that interface.
To be able to obtain the lumiére control, you have to create a custom
query, with bonobo-activation.
<example>
Bonobo_Unknown obj;
Bonobo_Control control;
obj = bonobo_activation_activate("bonobo:supported_mime_types.has
('video/x-msvideo') AND repo_ids.has ('Bonobo/Control') ",
NULL, 0, NULL, NULL);
if (ob != CORBA_OBJECT_NIL)
control = Bonobo_Unknown_queryInterface(obj, "Bonobo/Control", NULL);
</example>
Regards.
--
Gustavo João Alves Marques Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]