Commit 472768f7 authored by Dan Williams's avatar Dan Williams
Browse files

2005-08-18 Dan Williams <dcbw@redhat.com>

	* gnome/applet/main.c
		- Revert previous change for --no-session since
			--sm-disable does the same thing


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@876 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent bbea0e6f
2005-08-18 Dan Williams <dcbw@redhat.com>
* gnome/applet/main.c
- Revert previous change for --no-session since
--sm-disable does the same thing
2005-08-18 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-info.c
......
......@@ -46,26 +46,17 @@ int main (int argc, char *argv[])
{
NMWirelessApplet * nmwa;
GnomeClient * client = NULL;
int i;
gboolean session = TRUE;
gnome_program_init ("nm-applet", VERSION, LIBGNOMEUI_MODULE,
argc, argv,
GNOME_PARAM_NONE);
for (i = 0; i < argc; i++)
if (strcmp (argv[i], "--no-session") == 0)
session = FALSE;
if (session)
{
client = gnome_master_client ();
gnome_client_set_restart_command (client, argc, argv);
gnome_client_set_restart_style (client, GNOME_RESTART_IMMEDIATELY);
g_signal_connect (client, "save_yourself", G_CALLBACK (session_save), NULL);
g_signal_connect (client, "die", G_CALLBACK (session_die), NULL);
}
bindtextdomain (GETTEXT_PACKAGE, NULL);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
......@@ -77,7 +68,6 @@ int main (int argc, char *argv[])
gtk_main ();
}
if (session)
gnome_client_set_restart_style (client, GNOME_RESTART_ANYWAY);
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment