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

« back to all changes in this revision

Viewing changes to .pc/lp460144_correctly_update_notification.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:
2276
2276
        NMApplet *applet = NM_APPLET (user_data);
2277
2277
        OfflineNotificationContextInfo *info = applet->notification_queue_data;
2278
2278
        if(select_merged_notification_text (info))
2279
 
                applet_do_notify (applet, info->urgency, info->title, info->text, info->icon, NULL, NULL, NULL, applet);
 
2279
                if (!g_settings_get_boolean (applet->gsettings, PREF_DISABLE_DISCONNECTED_NOTIFICATIONS))
 
2280
                        applet_do_notify (applet, info->urgency, info->title,
 
2281
                                          info->text, info->icon,
 
2282
                                          PREF_DISABLE_DISCONNECTED_NOTIFICATIONS,
 
2283
                                          _("Don't show this message again"),
 
2284
                                          notify_dont_show_cb,
 
2285
                                          applet);
2280
2286
        else
2281
2287
                g_debug("no notification because merged found that we have nothing to say (e.g. not offline)");
2282
2288
        if (info->title)