[gtk+] recent-manager: Fix the error domain and message on move_item()



commit cc08a965be0a7663f2491ac100f89e56c8e31d0e
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Apr 10 18:39:33 2016 +0100

    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

 gtk/gtkrecentmanager.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index 5304b84..116e34d 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -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;
     }
 


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