1 === modified file 'src/applet-device-wired.c'
2 --- a/src/applet-device-wired.c 2009-01-12 17:39:22 +0000
3 +++ b/src/applet-device-wired.c 2009-02-17 15:29:30 +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);
14 s_con = NM_SETTING_CONNECTION (nm_connection_get_setting (connection, NM_TYPE_SETTING_CONNECTION));
15 - id = s_con ? nm_setting_connection_get_id (s_con) : NULL;
17 - str = g_strdup_printf (_("You are now connected to '%s'."), id);
18 + str = s_con ? nm_setting_connection_get_id (s_con) : NULL;
21 applet_do_notify_with_pref (applet,
22 - _("Connection Established"),
23 - str ? str : _("You are now connected to the wired network."),
24 + str ? str : _("Wired network"),
25 + _("Connection Established"),
27 PREF_DISABLE_CONNECTED_NOTIFICATIONS);