gimp r25191 - in trunk: . app/actions



Author: neo
Date: Mon Mar 24 11:53:05 2008
New Revision: 25191
URL: http://svn.gnome.org/viewvc/gimp?rev=25191&view=rev

Log:
2008-03-24  Sven Neumann  <sven gimp org>

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



Modified:
   trunk/ChangeLog
   trunk/app/actions/documents-commands.c

Modified: trunk/app/actions/documents-commands.c
==============================================================================
--- trunk/app/actions/documents-commands.c	(original)
+++ trunk/app/actions/documents-commands.c	Mon Mar 24 11:53:05 2008
@@ -171,15 +171,16 @@
   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 @@
   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);
     }
 }
 



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