~matttbe/ubuntu/trusty/network-manager-applet/lp1267100

« back to all changes in this revision

Viewing changes to .pc/applet-wifi-menu-before-vpn.patch/src/applet.c

  • Committer: Package Import Robot
  • Author(s): Matvey Marinin
  • Date: 2012-08-02 16:21:04 UTC
  • Revision ID: package-import@ubuntu.com-20120802162104-jr85y6212r31jw0g
Tags: 0.9.6.0~git201207161252.13c6db8-0ubuntu2
debian/patches/lp341684_device_sensitive_disconnect_notify.patch: updated 
to respect the "disable-disconnected-notifications" settings. (LP: #445872)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2274
2274
        NMApplet *applet = NM_APPLET (user_data);
2275
2275
        OfflineNotificationContextInfo *info = applet->notification_queue_data;
2276
2276
        if(select_merged_notification_text (info))
2277
 
                applet_do_notify (applet, info->urgency, info->title, info->text, info->icon, NULL, NULL, NULL, applet);
 
2277
                if (!g_settings_get_boolean (applet->gsettings, PREF_DISABLE_DISCONNECTED_NOTIFICATIONS))
 
2278
                        applet_do_notify (applet, info->urgency, info->title,
 
2279
                                          info->text, info->icon,
 
2280
                                          PREF_DISABLE_DISCONNECTED_NOTIFICATIONS,
 
2281
                                          _("Don't show this message again"),
 
2282
                                          notify_dont_show_cb,
 
2283
                                          applet);
2278
2284
        else
2279
2285
                g_debug("no notification because merged found that we have nothing to say (e.g. not offline)");
2280
2286
        if (info->title)