summaryrefslogtreecommitdiff
path: root/src/nautilus-file-management-properties-main.c
diff options
context:
space:
mode:
authorDave Camp <dave@ximian.com>2002-10-31 19:24:32 +0000
committerDave Camp <campd@src.gnome.org>2002-10-31 19:24:32 +0000
commitcd542bea12c4d5468a09edb3b2111e029f0b76e0 (patch)
tree006b785469169098bb2b360a7ca3edd1a34995c7 /src/nautilus-file-management-properties-main.c
parent874a70e92dc65bffaaa0f4fd6150715d73b4bdb0 (diff)
downloadnautilus-cd542bea12c4d5468a09edb3b2111e029f0b76e0.tar.gz
New preferences dialog. Use the new prefs dialog. As things are toggled,
2002-10-31 Dave Camp <dave@ximian.com> * Makefile.am: * nautilus-file-management-properties.desktop.in: * src/Makefile.am: * src/nautilus-file-management-properties-main.c: * src/nautilus-file-management-properties.c: * src/nautilus-file-management-properties.h: New preferences dialog. * src/nautilus-window-menus.c: (preferences_respond_callback), (preferences_callback): Use the new prefs dialog. * src/nautilus-window.c: (nautilus_window_hide_location_bar), (nautilus_window_show_location_bar), (nautilus_window_hide_toolbar), (nautilus_window_show_toolbar), (nautilus_window_hide_sidebar), (nautilus_window_show_sidebar), (nautilus_window_hide_status_bar), (nautilus_window_show_status_bar): As things are toggled, save them as the default for new windows. Patch from Jan Arne Petersen <jpetersen@uni-bonn.de>.
Diffstat (limited to 'src/nautilus-file-management-properties-main.c')
-rw-r--r--src/nautilus-file-management-properties-main.c66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/nautilus-file-management-properties-main.c b/src/nautilus-file-management-properties-main.c
new file mode 100644
index 000000000..c79c4650f
--- /dev/null
+++ b/src/nautilus-file-management-properties-main.c
@@ -0,0 +1,66 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+
+/* nautilus-file-management-properties-main.c - Start the nautilus-file-management preference dialog.
+
+ Copyright (C) 2002 Jan Arne Petersen
+
+ The Gnome Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The Gnome Library 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
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the Gnome Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Authors: Jan Arne Petersen <jpetersen@uni-bonn.de>
+*/
+
+#include <config.h>
+
+#include <gtk/gtkdialog.h>
+#include <gtk/gtkmain.h>
+
+#include <libgnome/gnome-program.h>
+#include <libgnomeui/gnome-ui-init.h>
+
+#include <libintl.h>
+
+#include <eel/eel-preferences.h>
+
+#include "nautilus-file-management-properties.h"
+
+static void
+nautilus_file_management_properties_main_close_callback (GtkDialog *dialog,
+ int response_id)
+{
+ if (response_id == GTK_RESPONSE_CLOSE) {
+ gtk_main_quit ();
+ }
+}
+
+int
+main (int argc, char *argv[])
+{
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
+ gnome_program_init ("file-managment-properties", VERSION,
+ LIBGNOMEUI_MODULE, argc, argv,
+ NULL);
+
+ eel_preferences_init ("/apps/nautilus");
+
+ nautilus_file_management_properties_dialog_show (G_CALLBACK (nautilus_file_management_properties_main_close_callback));
+
+ gtk_main ();
+
+ return 0;
+}