summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2008-06-17 13:15:45 +0000
committerEmmanuele Bassi <ebassi@src.gnome.org>2008-06-17 13:15:45 +0000
commit88c469420db1905bb28ccfa94b89e8f668426417 (patch)
treecaaefcee8e9fa5562f241bc695aa5cf4df09eb96
parent40b6173aa3264dbda019a8207f7289aec94e6921 (diff)
downloadgtk+-88c469420db1905bb28ccfa94b89e8f668426417.tar.gz
Consistently use the same error when removing a URI from an empty
2008-06-17 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentmanager.c: (gtk_recent_manager_remove_item): Consistently use the same error when removing a URI from an empty GtkRecentManager. svn path=/trunk/; revision=20422
-rw-r--r--ChangeLog6
-rw-r--r--gtk/gtkrecentmanager.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a1414ad9e..893598b959 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-17 Emmanuele Bassi <ebassi@gnome.org>
+
+ * gtk/gtkrecentmanager.c:
+ (gtk_recent_manager_remove_item): Consistently use the same
+ error when removing a URI from an empty GtkRecentManager.
+
2008-06-17 Michael Natterer <mitch@imendio.com>
* gtk/gtkfilechooserdefault.c: remove static integer variables
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index b7820c42f9..02497225a4 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -1007,9 +1007,9 @@ gtk_recent_manager_remove_item (GtkRecentManager *manager,
priv->recent_items = g_bookmark_file_new ();
priv->size = 0;
- g_set_error (error, GTK_RECENT_MANAGER_ERROR,
- GTK_RECENT_MANAGER_ERROR_NOT_FOUND,
- _("Unable to find an item with URI '%s'"),
+ g_set_error (error, G_BOOKMARK_FILE_ERROR,
+ G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND,
+ _("No bookmark found for URI '%s'"),
uri);
return FALSE;