mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
nautilus.desktop: Remove saved-search leftovers
It was removed long ago https://bugzilla.gnome.org/show_bug.cgi?id=771424
This commit is contained in:
parent
366f0038c4
commit
8005c8abe1
5 changed files with 3 additions and 21 deletions
|
@ -11,7 +11,7 @@ Type=Application
|
|||
DBusActivatable=true
|
||||
StartupNotify=true
|
||||
Categories=GNOME;GTK;Utility;Core;FileManager;
|
||||
MimeType=inode/directory;application/x-gnome-saved-search;
|
||||
MimeType=inode/directory;
|
||||
X-GNOME-UsesNotifications=true
|
||||
Actions=new-window;
|
||||
|
||||
|
|
|
@ -318,16 +318,8 @@ nautilus_bookmark_set_icon_to_default (NautilusBookmark *bookmark)
|
|||
else
|
||||
{
|
||||
uri = nautilus_bookmark_get_uri (bookmark);
|
||||
if (g_str_has_prefix (uri, EEL_SEARCH_URI))
|
||||
{
|
||||
symbolic_icon = g_themed_icon_new (NAUTILUS_ICON_FOLDER_SAVED_SEARCH);
|
||||
icon = g_themed_icon_new (NAUTILUS_ICON_FULLCOLOR_FOLDER_SAVED_SEARCH);
|
||||
}
|
||||
else
|
||||
{
|
||||
symbolic_icon = g_themed_icon_new (NAUTILUS_ICON_FOLDER_REMOTE);
|
||||
icon = g_themed_icon_new (NAUTILUS_ICON_FULLCOLOR_FOLDER_REMOTE);
|
||||
}
|
||||
symbolic_icon = g_themed_icon_new (NAUTILUS_ICON_FOLDER_REMOTE);
|
||||
icon = g_themed_icon_new (NAUTILUS_ICON_FULLCOLOR_FOLDER_REMOTE);
|
||||
g_free (uri);
|
||||
}
|
||||
|
||||
|
|
|
@ -26,9 +26,6 @@
|
|||
#include <gio/gio.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#define NAUTILUS_SAVED_SEARCH_EXTENSION ".savedSearch"
|
||||
#define NAUTILUS_SAVED_SEARCH_MIMETYPE "application/x-gnome-saved-search"
|
||||
|
||||
/* These functions all return something something that needs to be
|
||||
* freed with g_free, is not NULL, and is guaranteed to exist.
|
||||
*/
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#define NAUTILUS_ICON_FOLDER_PUBLIC_SHARE "folder-publicshare-symbolic"
|
||||
#define NAUTILUS_ICON_FOLDER_TEMPLATES "folder-templates-symbolic"
|
||||
#define NAUTILUS_ICON_FOLDER_VIDEOS "folder-videos-symbolic"
|
||||
#define NAUTILUS_ICON_FOLDER_SAVED_SEARCH "folder-saved-search-symbolic"
|
||||
|
||||
/* Icons for desktop */
|
||||
#define NAUTILUS_DESKTOP_ICON_DESKTOP "user-desktop"
|
||||
|
@ -39,7 +38,6 @@
|
|||
#define NAUTILUS_ICON_FULLCOLOR_FOLDER_PUBLIC_SHARE "folder-publicshare"
|
||||
#define NAUTILUS_ICON_FULLCOLOR_FOLDER_TEMPLATES "folder-templates"
|
||||
#define NAUTILUS_ICON_FULLCOLOR_FOLDER_VIDEOS "folder-videos"
|
||||
#define NAUTILUS_ICON_FULLCOLOR_FOLDER_SAVED_SEARCH "folder-saved-search"
|
||||
|
||||
/* Other icons */
|
||||
#define NAUTILUS_ICON_TEMPLATE "text-x-generic-template"
|
||||
|
|
|
@ -618,11 +618,6 @@ search_engine_hits_added (NautilusSearchEngine *engine,
|
|||
const char *uri;
|
||||
|
||||
uri = nautilus_search_hit_get_uri (hit);
|
||||
if (g_str_has_suffix (uri, NAUTILUS_SAVED_SEARCH_EXTENSION))
|
||||
{
|
||||
/* Never return saved searches themselves as hits */
|
||||
continue;
|
||||
}
|
||||
|
||||
nautilus_search_hit_compute_scores (hit, search->details->query);
|
||||
|
||||
|
|
Loading…
Reference in a new issue