Commit d2168e18 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

also remove the dangling item from GtkRecentManager.

2008-03-24  Sven Neumann  <sven@gimp.org>

	* app/actions/documents-commands.c
	(documents_remove_dangling_foreach): also remove the dangling 
item
	from GtkRecentManager.


svn path=/trunk/; revision=25191
parent 3344c1b3
2008-03-24 Sven Neumann <sven@gimp.org>
* app/actions/documents-commands.c
(documents_remove_dangling_foreach): also remove the dangling item
from GtkRecentManager.
2008-03-24 Sven Neumann <sven@gimp.org>
Do not any longer keep the document history in two places. We only
......
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment