Re: [Nautilus-list] Re: [GNOME VFS] Strange behaviour in gnome_vfs_mime_get_short_list_components
- From: Frederic Crozat <fcrozat mandrakesoft com>
- To: Darin Adler <darin bentspoon com>
- Cc: gnome-vfs ximian com, nautilus-list lists eazel com
- Subject: Re: [Nautilus-list] Re: [GNOME VFS] Strange behaviour in gnome_vfs_mime_get_short_list_components
- Date: 17 Jul 2001 11:16:42 +0200
Le 16 Jul 2001 12:12:20 -0700, Darin Adler a écrit :
> On Monday, July 16, 2001, at 08:49 AM, Frederic Crozat wrote:
>
> > I'm having very strange behaviour in
> > gnome_vfs_mime_get_short_list_components, when Nautilus queries for
> > text/html mime type (Darin, I think you remember my problem when I was
> > getting text-view instead of mozilla view.. Well, it is back on my test
> > computer and it seems to be a problem at gnome-vfs or oaf level..) :
> >
> > gnome_vfs_mime_get_short_list_components is running the following oaf
> > query : bonobo:supported_mime_types.has_one(['text/html','text/*','*'])
> > AND
> > has(['OAFIID:nautilus_mozilla_content_view:1ee70717-57bf-4079-aae5-922abdd576b1,
> > OAFIID:ntl_web_browser:0ce1a736-c939-4ac7-b12c-19d72bf1510b,
> > OAFIID:nautilus_text_view:fa466311-17c1-435c-8231-c9fc434b6437'],iid)
> >
> > with sort condition :
> > prefer_by_list_order(iid,['OAFIID:nautilus_mozilla_content_view:1ee70717-57bf-4079-aae5-922abdd576b1,
> > OAFIID:ntl_web_browser:0ce1a736-c939-4ac7-b12c-19d72bf1510b,
> > OAFIID:nautilus_text_view:fa466311-17c1-435c-8231-c9fc434b6437'])
> >
> > But oaf returns the following list :
> > OAFIID:nautilus_text_view:fa466311-17c1-435c-8231-c9fc434b6437
> > OAFIID:nautilus_mozilla_content_view:1ee70717-57bf-4079-aae5-922abdd576b1
> >
> > And of course, Nautilus uses text_view instead of mozilla view :((
> >
> > Is the query badly written or it is a bug in oaf ?
>
> The queries you list above are missing some quote marks ending items in
> the list and starting new items. But they are otherwise fine.
I know, bad copy/paste..
>
> I tested these queries (after fixing the quote marks) by using the
> oaf-run-query tool. The first parameter is the query and the second
> parameter is the sort condition. I tried both sort orders (text view first
> and content view first) and got the correct results in each case.
I didn't knew about oaf-run-query but I've made some tests with it :
running the same query with both order give me :
Number of sort criteria: 1
prefer_by_list_order(iid,
['OAFIID:nautilus_mozilla_content_view:1ee70717-57bf-4079-aae5-922abdd576b1','OAFIID:nautilus_text_view:fa466311-17c1-435c-8231-c9fc434b6437'])
number of results: 2
OAFIID:nautilus_text_view:fa466311-17c1-435c-8231-c9fc434b6437
OAFIID:nautilus_mozilla_content_view:1ee70717-57bf-4079-aae5-922abdd576b1
Number of sort criteria: 1
prefer_by_list_order(iid,
['OAFIID:nautilus_text_view:fa466311-17c1-435c-8231-c9fc434b6437','OAFIID:nautilus_mozilla_content_view:1ee70717-57bf-4079-aae5-922abdd576b1'])
number of results: 2
OAFIID:nautilus_text_view:fa466311-17c1-435c-8231-c9fc434b6437
OAFIID:nautilus_mozilla_content_view:1ee70717-57bf-4079-aae5-922abdd576b1
I have this problem with both oaf 0.6.5 and a oaf snapshot from 20010711
(oaf-stable-0-6 branch, needed to correct activation problem with
evolution..)
Any idea ?
--
Frédéric Crozat
MandrakeSoft
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]