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
This commit is contained in:
parent
3344c1b3bc
commit
d2168e1820
2 changed files with 15 additions and 3 deletions
|
|
@ -1,3 +1,9 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue