recent-manager: Fix the error domain and message on move_item()

Using NOT_FOUND when moving is wrong and unhelpful.

https://bugzilla.gnome.org/show_bug.cgi?id=620065
This commit is contained in:
Emmanuele Bassi 2016-04-10 18:39:33 +01:00
parent bccef4e41a
commit cc08a965be

View File

@ -1272,9 +1272,9 @@ gtk_recent_manager_move_item (GtkRecentManager *recent_manager,
g_error_free (move_error);
g_set_error (error, GTK_RECENT_MANAGER_ERROR,
GTK_RECENT_MANAGER_ERROR_NOT_FOUND,
_("Unable to find an item with URI '%s'"),
uri);
GTK_RECENT_MANAGER_ERROR_UNKNOWN,
_("Unable to move the item with URI '%s' to '%s'"),
uri, new_uri);
return FALSE;
}