2
* indicator-network - user interface for connman
3
* Copyright 2010 Canonical Ltd.
6
* Kalle Valo <kalle.valo@canonical.com>
8
* This program is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License version 3, as published
10
* by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranties of
14
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
* PURPOSE. See the GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
25
#include <glib/gi18n.h>
32
static gboolean debug = FALSE;
34
static GOptionEntry entries[] = {
35
{ "debug", 'd', 0, G_OPTION_ARG_NONE, &debug, "Enable debug mode", NULL },
39
int main(int argc, char **argv)
41
GOptionContext *context;
45
g_debug("%s()", __func__);
49
gtk_init(&argc, &argv);
51
context = g_option_context_new("- UI for Network Menu");
52
g_option_context_add_main_entries(context, entries, GETTEXT_PACKAGE);
54
if (!g_option_context_parse(context, &argc, &argv, &error)) {
55
g_print("option parsing failed: %s\n", error->message);
62
log_init("indicator-network-agent");
64
agent = g_object_new(NETWORK_AGENT_TYPE, NULL);
66
setlocale(LC_ALL, "");
67
bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR);
68
textdomain(GETTEXT_PACKAGE);
73
g_object_unref(agent);