~ubuntu-branches/ubuntu/precise/network-manager-applet/precise-proposed

« 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): James M Leddy, Matvey Marinin
  • Date: 2013-04-15 16:15:22 UTC
  • Revision ID: package-import@ubuntu.com-20130415161522-enkfasavhgnb6ws6
Tags: 0.9.4.1-0ubuntu2.3
[ Matvey Marinin ]
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:
2281
2281
        NMApplet *applet = NM_APPLET (user_data);
2282
2282
        OfflineNotificationContextInfo *info = applet->notification_queue_data;
2283
2283
        if(select_merged_notification_text (info))
2284
 
                applet_do_notify (applet, info->urgency, info->title, info->text, info->icon, NULL, NULL, NULL, applet);
 
2284
                if (!gconf_client_get_bool (applet->gconf_client, PREF_DISABLE_DISCONNECTED_NOTIFICATIONS, NULL))
 
2285
                        applet_do_notify (applet, info->urgency, info->title,
 
2286
                                          info->text, info->icon,
 
2287
                                          PREF_DISABLE_DISCONNECTED_NOTIFICATIONS,
 
2288
                                          _("Don't show this message again"),
 
2289
                                          notify_dont_show_cb,
 
2290
                                          applet);
2285
2291
        else
2286
2292
                g_debug("no notification because merged found that we have nothing to say (e.g. not offline)");
2287
2293
        if (info->title)