updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / network-manager-applet-notify-osd / lp330608_dxteam_gsm_connect_text.patch
blob7d0d75539eebc1051847e7ac27f37957c0b52d22
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
4 @@ -287,24 +287,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;
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;
17 - if (id)
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"),
27 "nm-device-wwan",
28 PREF_DISABLE_CONNECTED_NOTIFICATIONS);
29 - g_free (str);