Updated efl-launcher to netbook-launcher-efl 0.3.3
[efl-launcher.git] / efl-launcher / src / quit / nl-quit-main.c
blob5bac4c1c02a1777f11ccc61af483fd57a1e961e3
1 /* -*- Mode: C; indent-tabs-mode: nil; tab-width: 2 -*-
3 * Copyright (C) 2009 Canonical Ltd.
4 * Authors:
5 * Gustavo Sverzut Barbieri <gustavo.barbieri@canonical.com>
7 * This file is part of Netbook Launcher EFL.
9 * Netbook Launcher EFL is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, version 3 of the License.
13 * Netbook Launcher EFL is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with Netbook Launcher EFL. If not, see <http://www.gnu.org/licenses/>.
22 #ifdef HAVE_CONFIG_H
23 #include "config.h"
24 #endif
25 #include "nl-quit.h"
26 #include <locale.h>
27 #include <libgnomeui/libgnomeui.h>
28 #include <libgnome/libgnome.h>
30 int
31 main(int argc, char *argv[])
33 GtkWidget *window;
34 gint result;
36 setlocale(LC_ALL, "");
37 bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
38 bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
39 textdomain(GETTEXT_PACKAGE);
41 gnome_program_init("netbook-launcher-efl_quit", "0.1",
42 LIBGNOMEUI_MODULE, argc, argv,
43 GNOME_PARAM_NONE, NULL);
45 window = nl_quit_new();
46 result = gtk_dialog_run (GTK_DIALOG (window));
47 while (gtk_events_pending())
48 gtk_main_iteration_do(TRUE);
49 g_debug ("reply: %d", result);
51 return 0;