diff --git a/ChangeLog b/ChangeLog index a43ccf1477..4bbc515bba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-24 Sven Neumann + + * app/actions/documents-commands.c + (documents_remove_dangling_foreach): also remove the dangling item + from GtkRecentManager. + 2008-03-24 Sven Neumann Do not any longer keep the document history in two places. We only diff --git a/app/actions/documents-commands.c b/app/actions/documents-commands.c index 1e8a2924fa..a1c19e8d21 100644 --- a/app/actions/documents-commands.c +++ b/app/actions/documents-commands.c @@ -171,15 +171,16 @@ documents_remove_cmd_callback (GtkAction *action, GimpContainerEditor *editor = GIMP_CONTAINER_EDITOR (data); GimpContext *context; GimpImagefile *imagefile; + const gchar *uri; context = gimp_container_view_get_context (editor->view); imagefile = gimp_context_get_imagefile (context); gimp_container_view_remove_active (editor->view); - gtk_recent_manager_remove_item (gtk_recent_manager_get_default (), - gimp_object_get_name (GIMP_OBJECT (imagefile)), - NULL); + uri = gimp_object_get_name (GIMP_OBJECT (imagefile)); + + gtk_recent_manager_remove_item (gtk_recent_manager_get_default (), uri, NULL); } void @@ -285,7 +286,12 @@ documents_remove_dangling_foreach (GimpImagefile *imagefile, if (gimp_thumbnail_peek_image (imagefile->thumbnail) == GIMP_THUMB_STATE_NOT_FOUND) { + const gchar *uri = gimp_object_get_name (GIMP_OBJECT (imagefile)); + gimp_container_remove (container, GIMP_OBJECT (imagefile)); + + gtk_recent_manager_remove_item (gtk_recent_manager_get_default (), uri, + NULL); } }