Commit 6eb74f59 authored by A. Walton's avatar A. Walton Committed by Andrew Walton

Remove the first-time-druid dead code (#520773).

2008-04-10  A. Walton  <awalton@svn.gnome.org>

	* src/Makefile.am:
	* src/nautilus-application.c: (nautilus_application_startup):
	* src/nautilus-application.h:
	* src/nautilus-first-time-druid.c:
	* src/nautilus-first-time-druid.h:
	* src/nautilus-main.c: (main):
	Remove the first-time-druid dead code (#520773).


svn path=/trunk/; revision=14061
parent 232e25a8
2008-04-10 A. Walton <awalton@svn.gnome.org>
* src/Makefile.am:
* src/nautilus-application.c: (nautilus_application_startup):
* src/nautilus-application.h:
* src/nautilus-first-time-druid.c:
* src/nautilus-first-time-druid.h:
* src/nautilus-main.c: (main):
Remove the first-time-druid dead code (#520773).
2008-04-10 Cosimo Cecchi <cosimoc@gnome.org>
* configure.in: Add a missing comma to fix build with
......
......@@ -75,8 +75,6 @@ nautilus_SOURCES = \
nautilus-emblem-sidebar.h \
nautilus-file-management-properties.c \
nautilus-file-management-properties.h \
nautilus-first-time-druid.c \
nautilus-first-time-druid.h \
nautilus-history-sidebar.c \
nautilus-history-sidebar.h \
nautilus-image-properties-page.c \
......
......@@ -48,7 +48,6 @@
#include <fcntl.h>
#include <string.h>
#include "nautilus-desktop-window.h"
#include "nautilus-first-time-druid.h"
#include "nautilus-main.h"
#include "nautilus-spatial-window.h"
#include "nautilus-navigation-window.h"
......@@ -540,7 +539,6 @@ nautilus_application_startup (NautilusApplication *application,
gboolean restart_shell,
gboolean no_default_window,
gboolean no_desktop,
gboolean do_first_time_druid_check,
gboolean browser_window,
const char *startup_id,
const char *geometry,
......
......@@ -72,7 +72,6 @@ void nautilus_application_startup (NautilusApplication
gboolean restart_shell,
gboolean no_default_window,
gboolean no_desktop,
gboolean do_first_time_druid_check,
gboolean browser_window,
const char *startup_id,
const char *default_geometry,
......
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Nautilus
*
* Copyright (C) 2000 Eazel, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* Author: Andy Hertzfeld <andy@eazel.com>
*/
#include <config.h>
#include "nautilus-first-time-druid.h"
#include <glib/gi18n.h>
#include <libnautilus-private/nautilus-file-utilities.h>
#include <stdio.h>
#include <string.h>
void
nautilus_set_first_time_file_flag (void)
{
FILE *stream;
char *user_directory, *druid_flag_file_name;
const char * const blurb =
_("Existence of this file indicates that the Nautilus configuration druid\n"
"has been presented.\n\n"
"You can manually erase this file to present the druid again.\n");
user_directory = nautilus_get_user_directory ();
druid_flag_file_name = g_build_filename (user_directory, "first-time-flag", NULL);
g_free (user_directory);
stream = fopen (druid_flag_file_name, "w");
if (stream != NULL) {
fwrite (blurb, sizeof (char), strlen (blurb), stream);
fclose (stream);
}
g_free (druid_flag_file_name);
}
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Nautilus
*
* Copyright (C) 2000 Eazel, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* Author: Andy Hertzfeld <andy@eazel.com>
*/
/* nautilus-first-time-druid.h: definition file for the first time druid
*/
#ifndef NAUTILUS_FIRST_TIME_DRUID_H
#define NAUTILUS_FIRST_TIME_DRUID_H
void nautilus_set_first_time_file_flag (void);
#endif /* NAUTILUS_FIRST_TIME_DRUID_H */
......@@ -554,7 +554,6 @@ main (int argc, char *argv[])
nautilus_application_startup
(application,
kill_shell, restart_shell, no_default_window, no_desktop,
!(kill_shell || restart_shell),
browser_window,
startup_id_copy,
geometry,
......
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