1
/* NetworkManager Wireless Applet -- Display wireless access points and allow user control
3
* Dan Williams <dcbw@redhat.com>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
* This applet used the GNOME Wireless Applet as a skeleton to build from.
21
* (C) Copyright 2005 Red Hat, Inc.
30
#include <libgnomeui/libgnomeui.h>
31
#include <glib/gi18n-lib.h>
34
#include "applet-dbus-vpn.h"
36
static void session_die (GnomeClient *client, gpointer client_data)
38
NMApplet *applet = client_data;
39
nma_dbus_vpn_deactivate_connection (applet->connection);
43
int main (int argc, char *argv[])
48
gnome_program_init ("nm-applet", VERSION, LIBGNOMEUI_MODULE,
50
GNOME_PARAM_NONE, GNOME_PARAM_NONE);
52
client = gnome_master_client ();
53
gnome_client_set_restart_style (client, GNOME_RESTART_ANYWAY);
55
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
56
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
57
textdomain (GETTEXT_PACKAGE);
63
g_signal_connect (client, "save_yourself", G_CALLBACK (gtk_true), NULL);
64
g_signal_connect (client, "die", G_CALLBACK (session_die), nma);
66
gtk_widget_show_all (GTK_WIDGET (nma));