diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-03-07 11:24:01 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-03-07 12:37:05 +0100 |
commit | 293bffd2472fb574e782b1ebf1f192dc006fa719 (patch) | |
tree | 6adcf240cd7b8c08f0c4bc72ce9a16b3018f525b /src/nautilus-x-content-bar.c | |
parent | 0bfae7052961487d531b26273684fc1956ab211d (diff) | |
download | nautilus-293bffd2472fb574e782b1ebf1f192dc006fa719.tar.gz |
content-bar: move more content type handling
And rely on file-utilities to check whether we can should handle
those mime types.
https://bugzilla.gnome.org/show_bug.cgi?id=762703
Diffstat (limited to 'src/nautilus-x-content-bar.c')
-rw-r--r-- | src/nautilus-x-content-bar.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nautilus-x-content-bar.c b/src/nautilus-x-content-bar.c index e783dc94b..e4a6c1eaf 100644 --- a/src/nautilus-x-content-bar.c +++ b/src/nautilus-x-content-bar.c @@ -95,16 +95,10 @@ nautilus_x_content_bar_set_x_content_types (NautilusXContentBar *bar, const char apps = g_ptr_array_new (); g_ptr_array_set_free_func (apps, g_object_unref); for (n = 0; x_content_types[n] != NULL; n++) { - if (g_str_has_prefix (x_content_types[n], "x-content/blank-")) - continue; - - if (g_content_type_is_a (x_content_types[n], "x-content/win32-software")) + if (!should_handle_content_type (x_content_types[n])) continue; default_app = g_app_info_get_default_for_type (x_content_types[n], FALSE); - if (default_app == NULL) - continue; - g_ptr_array_add (types, g_strdup (x_content_types[n])); g_ptr_array_add (apps, default_app); } |