[patch] fix for unknown files



Hi,

Currently, if a nautilus property page or context menu handler has "*/*"
as its supported mime types, the component will not be found for unknown
files (and it should be).  The attached 1 liner fixes this.

Thanks,
James
Index: libnautilus-private/nautilus-mime-actions.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-mime-actions.c,v
retrieving revision 1.105
diff -u -r1.105 nautilus-mime-actions.c
--- libnautilus-private/nautilus-mime-actions.c	10 Nov 2002 09:13:34 -0000	1.105
+++ libnautilus-private/nautilus-mime-actions.c	7 Jan 2003 02:28:25 -0000
@@ -1797,7 +1797,7 @@
         bonobo_activation_result = NULL;
         query = NULL;
 
-        if (is_known_mime_type (mime_type)) {
+        if (is_known_mime_type (mime_type) || !must_be_view) {
                 query = make_bonobo_activation_query_with_known_mime_type (mime_type, uri_scheme, explicit_iids, extra_requirements, must_be_view);
         } else {
                 query = make_bonobo_activation_query_with_uri_scheme_only (uri_scheme, explicit_iids, extra_requirements, must_be_view);


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