Re: Missing "Open with" submenu in popup menu



Il giorno mer, 26/10/2005 alle 11.05 +0200, Alexander Larsson ha
scritto:
> On Sun, 2005-10-23 at 18:15 +0200, Luca Ferretti wrote:
> 
> > 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);
>  }
> 

Doh, g_list_sort have a return value...






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