1 === modified file 'src/applet-device-gsm.c'
2 --- a/src/applet-device-gsm.c 2009-02-17 16:32:22 +0000
3 +++ b/src/applet-device-gsm.c 2009-02-17 16:36:47 +0000
5 if (new_state == NM_DEVICE_STATE_ACTIVATED) {
6 NMConnection *connection;
7 NMSettingConnection *s_con = NULL;
9 + const char *str = NULL;
11 connection = applet_find_active_connection_for_device (device, applet, NULL);
15 s_con = NM_SETTING_CONNECTION (nm_connection_get_setting (connection, NM_TYPE_SETTING_CONNECTION));
16 - id = s_con ? nm_setting_connection_get_id (s_con) : NULL;
18 - str = g_strdup_printf (_("You are now connected to '%s'."), id);
19 + str = s_con ? nm_setting_connection_get_id (s_con) : NULL;
22 applet_do_notify_with_pref (applet,
23 - _("Connection Established"),
24 - str ? str : _("You are now connected to the GSM network."),
25 + str ? str : _("GSM network."),
26 + _("Connection Established"),
28 PREF_DISABLE_CONNECTED_NOTIFICATIONS);