--- gnome-applets-2.16.2/trashapplet/src/trashapplet.c.trash-screen 2006-12-05 16:33:56.000000000 -0500
+++ gnome-applets-2.16.2/trashapplet/src/trashapplet.c 2006-12-05 16:32:41.000000000 -0500
@@ -669,6 +669,8 @@
TrashApplet *applet,
const gchar *cname)
{
+ GdkScreen *screen;
+
/* Open the "trash:" URI with gnome-open */
gchar *argv[] = { "gnome-open", "trash:", NULL };
GError *err = NULL;
@@ -676,12 +678,13 @@
g_return_if_fail (TRASH_IS_APPLET (applet));
- res = g_spawn_async (NULL,
- argv, NULL,
- G_SPAWN_SEARCH_PATH,
- NULL, NULL,
- NULL,
- &err);
+ screen = gtk_widget_get_screen (GTK_WIDGET (applet));
+ res = gdk_spawn_on_screen (screen, NULL,
+ argv, NULL,
+ G_SPAWN_SEARCH_PATH,
+ NULL, NULL,
+ NULL,
+ &err);
if (! res) {
error_dialog (applet, _("Error while spawning nautilus:\n%s"),