blob: 3ca65d2a57475a1aa9a95064db2e59aeb340dec7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
* Initial main.c file generated by Glade. Edit as required.
* Glade will not overwrite this file.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gnome.h>
#include "interface.h"
#include "support.h"
int
main (int argc, char *argv[])
{
GtkWidget *window;
#ifdef ENABLE_NLS
bindtextdomain ("nautilus-installer", GNOMELOCALEDIR);
textdomain ("nautilus-installer");
#endif
gnome_init ("nautilus-installer", VERSION, argc, argv);
/*
* The following code was added by Glade to create one of each component
* (except popup menus), just so that you see something after building
* the project. Delete any components that you don't want shown initially.
*/
window = create_window ();
set_images (window);
if (check_for_root_user ()==FALSE) {
GnomeDialog *d;
d = GNOME_DIALOG (gnome_error_dialog_parented ("I'll bring my axe and ore and beat you...\n"
"This means you should run this as root",
GTK_WINDOW (window)));
gnome_dialog_run_and_close (d);
return 0;
}
gtk_widget_show (window);
gtk_main ();
return 0;
}
|