static void
action_quit (GSimpleAction *action,
	     GVariant *parameter,
	     gpointer user_data)
{
	NautilusApplication *application = user_data;
	GList *windows, *l;

	/* nautilus_window_close() doesn't do anything for desktop windows */
	windows = nautilus_application_get_windows (application);
        /* make a copy, since the original list will be modified when destroying
         * a window, making this list invalid */
        windows = g_list_copy (windows);
	for (l = windows; l != NULL; l = l->next) {
		nautilus_window_close (l->data);
	}

        g_list_free (windows);
}
static void
action_close_window_callback (GtkAction *action,
                              gpointer user_data)
{
    nautilus_window_close (NAUTILUS_WINDOW (user_data));
}