Re: Missing "Open with" submenu in popup menu
- From: Alexander Larsson <alexl redhat com>
- To: Luca Ferretti <elle uca libero it>
- Cc: Christian Neumair <chris gnome-de org>, Nautilus devel list <nautilus-list gnome org>
- Subject: Re: Missing "Open with" submenu in popup menu
- Date: Wed, 26 Oct 2005 11:05:25 +0200
On Sun, 2005-10-23 at 18:15 +0200, Luca Ferretti wrote:
> This was the result of first investigation. Added a print of
> guessed_mime_type and another "for .. print list items" just before the
> return. Here is the result on PNG file.
>
> ########### Nautilus - Open with ###########
> MIME type: image/jpeg
> Application 1: gThumb Image Viewer
> Application 2: F-Spot
> Application 3: GNU Image Manipulation Program
> Application 4: Image Viewer
> ### Before return ###
> Application 1: gThumb Image Viewer
> Application 2: Image Viewer
>
>
> So the issue could be a) in if statement (we have to enter, so added a
> g_warning to says "We are in IF statement") b) in list sorting function.
> The response is b).
I just commited this fix:
diff -u -p -r1.118 nautilus-mime-actions.c
--- libnautilus-private/nautilus-mime-actions.c 19 Oct 2005 18:27:44 -0000 1.118
+++ libnautilus-private/nautilus-mime-actions.c 26 Oct 2005 09:04:05 -0000
@@ -150,7 +150,7 @@ get_open_with_mime_applications (Nautilu
uri = nautilus_file_get_uri (file);
result = gnome_vfs_mime_get_all_applications_for_uri (uri, mime_type);
- g_list_sort (result, (GCompareFunc) application_compare_by_name);
+ result = g_list_sort (result, (GCompareFunc) application_compare_by_name);
if (strcmp (guessed_mime_type, mime_type) != 0) {
GList *result_2;
@@ -203,7 +203,7 @@ nautilus_mime_get_applications_for_file
}
mime_type = nautilus_file_get_mime_type (file);
result = gnome_vfs_mime_get_all_applications (mime_type);
- g_list_sort (result, (GCompareFunc) application_compare_by_name);
+ result = g_list_sort (result, (GCompareFunc) application_compare_by_name);
return filter_nautilus_handler (result);
}
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a fiendish neurotic photographer on the run. She's a sharp-shooting goth
cab driver descended from a line of powerful witches. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]