mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 16:20:09 +01:00
2006-08-01 Robert Love <rml@novell.com>
* gnome/applet/main.c: Shutdown all VPN connections on logout. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1904 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
a09b9f71ec
commit
8500b5c26d
2 changed files with 11 additions and 4 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2006-08-01 Robert Love <rml@novell.com>
|
||||
|
||||
* gnome/applet/main.c: Shutdown all VPN connections on logout.
|
||||
|
||||
2006-07-31 Robert Love <rml@novell.com>
|
||||
|
||||
* src/backends/interface_parser.c: Declarations must begin the block.
|
||||
|
|
|
|||
|
|
@ -31,10 +31,13 @@
|
|||
#include <glib/gi18n-lib.h>
|
||||
|
||||
#include "applet.h"
|
||||
#include "applet-dbus-vpn.h"
|
||||
|
||||
static void session_die (GnomeClient *client, gpointer client_data)
|
||||
{
|
||||
gtk_main_quit ();
|
||||
NMApplet *applet = client_data;
|
||||
nma_dbus_vpn_deactivate_connection (applet->connection);
|
||||
gtk_main_quit ();
|
||||
}
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
|
|
@ -49,9 +52,6 @@ int main (int argc, char *argv[])
|
|||
client = gnome_master_client ();
|
||||
gnome_client_set_restart_style (client, GNOME_RESTART_ANYWAY);
|
||||
|
||||
g_signal_connect (client, "save_yourself", G_CALLBACK (gtk_true), NULL);
|
||||
g_signal_connect (client, "die", G_CALLBACK (session_die), NULL);
|
||||
|
||||
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
textdomain (GETTEXT_PACKAGE);
|
||||
|
|
@ -60,6 +60,9 @@ int main (int argc, char *argv[])
|
|||
if (!nma)
|
||||
exit (EXIT_FAILURE);
|
||||
|
||||
g_signal_connect (client, "save_yourself", G_CALLBACK (gtk_true), NULL);
|
||||
g_signal_connect (client, "die", G_CALLBACK (session_die), nma);
|
||||
|
||||
gtk_widget_show_all (GTK_WIDGET (nma));
|
||||
gtk_main ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue