[Nautilus-list] Re: [GNOME VFS] Strange behaviour in gnome_vfs_mime_get_short_list_components



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 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.

    -- Darin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]