- Don't create application/x-ext-<extension> types for known mimetypes

(patch from head)
- Fix a crash in the Properties dialog while changing owner (patch from
    head)
This commit is contained in:
Tomas Bzatek 2008-03-13 16:11:17 +00:00
parent 99544e2c26
commit 6b3a111bef
3 changed files with 50 additions and 1 deletions

View File

@ -0,0 +1,25 @@
Index: src/file-manager/fm-properties-window.c
===================================================================
--- src/file-manager/fm-properties-window.c (revision 13898)
+++ src/file-manager/fm-properties-window.c (working copy)
@@ -1924,7 +1924,8 @@
static void
owner_change_callback (NautilusFile *file,
- GError *error,
+ GFile *result_location,
+ GError *error,
FMPropertiesWindow *window)
{
char *owner;
@@ -2067,7 +2068,9 @@
g_assert (NAUTILUS_IS_FILE (file));
owner_text = combo_box_get_active_entry (combo_box, 0);
- name_array = g_strsplit (owner_text, " - ", 2);
+ if (! owner_text)
+ return;
+ name_array = g_strsplit (owner_text, " - ", 2);
new_owner = name_array[0];
g_free (owner_text);
cur_owner = nautilus_file_get_owner_name (file);

View File

@ -0,0 +1,13 @@
--- trunk/libnautilus-private/nautilus-mime-application-chooser.c 2008/02/20 15:11:17 13784
+++ trunk/libnautilus-private/nautilus-mime-application-chooser.c 2008/03/13 15:11:05 13931
@@ -599,9 +599,9 @@
const char *extension,
const char *mime_type)
{
- chooser->details->extension = g_strdup (extension);
if (extension != NULL &&
g_content_type_is_unknown (mime_type)) {
+ chooser->details->extension = g_strdup (extension);
chooser->details->content_type = g_strdup_printf ("application/x-extension-%s", extension);
/* the %s here is a file extension */
chooser->details->type_description =

View File

@ -19,7 +19,7 @@
Name: nautilus
Summary: Nautilus is a file manager for GNOME
Version: 2.22.0
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: User Interface/Desktops
Source: http://download.gnome.org/sources/%{name}/2.22/%{name}-%{version}.tar.bz2
@ -83,6 +83,10 @@ Patch6: nautilus-2.21.1-dynamic-search-r2.patch
Patch7: rtl-fix.patch
# Patches from head
Patch8: nautilus-2.22.0-fm_properties_owner_change_crash.patch
Patch9: nautilus-2.22.0-mime-application-x-ext.patch
%description
Nautilus integrates access to files, applications, media,
Internet-based resources and the Web. Nautilus delivers a dynamic and
@ -118,6 +122,9 @@ for writing nautilus extensions.
%patch6 -p1 -b .dynamic-search
%patch7 -p1 -b .rtl-fix
%patch8 -p0 -b .fm-properties
%patch9 -p1 -b .mime
%build
libtoolize --force --copy
@ -225,6 +232,10 @@ fi
%{_libdir}/*.so
%changelog
* Thu Mar 13 2008 Tomas Bzatek <tbzatek@redhat.com> - 2.22.0-2
- Don't create application/x-ext-<extension> types for known mimetypes (patch from head)
- Fix a crash in the Properties dialog while changing owner (patch from head)
* Mon Mar 10 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.0-1
- Update to 2.22.0