updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / network-manager-applet-notify-osd / lp330571_dxteam_wired_connect_text.patch
bloba8c7ba81e582fe0eac76ad869d7b9775ea15e24f
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
4 @@ -253,23 +253,19 @@
5 if (new_state == NM_DEVICE_STATE_ACTIVATED) {
6 NMConnection *connection;
7 NMSettingConnection *s_con = NULL;
8 - char *str = NULL;
9 + const char *str = NULL;
11 connection = applet_find_active_connection_for_device (device, applet, NULL);
12 if (connection) {
13 - const char *id;
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;
16 - if (id)
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"),
26 "nm-device-wired",
27 PREF_DISABLE_CONNECTED_NOTIFICATIONS);
28 - g_free (str);