2008-04-30 Cosimo Cecchi <cosimoc@gnome.org>
[nautilus.git] / src / nautilus-file-management-properties-main.c
blob0e9ba408ef84143c479b4418c426d4a480e2c45e
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* nautilus-file-management-properties-main.c - Start the nautilus-file-management preference dialog.
5 Copyright (C) 2002 Jan Arne Petersen
7 The Gnome Library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version.
12 The Gnome Library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public
18 License along with the Gnome Library; see the file COPYING.LIB. If not,
19 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Authors: Jan Arne Petersen <jpetersen@uni-bonn.de>
25 #include <config.h>
27 #include <gtk/gtkdialog.h>
28 #include <gtk/gtkmain.h>
30 #include <libgnome/gnome-program.h>
31 #include <libgnomeui/gnome-ui-init.h>
32 #include <libnautilus-private/nautilus-module.h>
34 #include <libintl.h>
36 #include <eel/eel-preferences.h>
38 #include "nautilus-file-management-properties.h"
40 static void
41 nautilus_file_management_properties_main_close_callback (GtkDialog *dialog,
42 int response_id)
44 if (response_id == GTK_RESPONSE_CLOSE) {
45 gtk_main_quit ();
49 int
50 main (int argc, char *argv[])
52 bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
53 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
54 textdomain (GETTEXT_PACKAGE);
56 gnome_program_init ("file-managment-properties", VERSION,
57 LIBGNOMEUI_MODULE, argc, argv,
58 NULL, NULL);
60 eel_preferences_init ("/apps/nautilus");
62 nautilus_module_init ();
64 nautilus_file_management_properties_dialog_show (G_CALLBACK (nautilus_file_management_properties_main_close_callback), NULL);
66 gtk_main ();
68 return 0;