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

« back to all changes in this revision

Viewing changes to 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:
2430
2430
        NMApplet *applet = NM_APPLET (user_data);
2431
2431
        OfflineNotificationContextInfo *info = applet->notification_queue_data;
2432
2432
        if(select_merged_notification_text (info))
2433
 
                applet_do_notify (applet, info->urgency, info->title, info->text, info->icon, NULL, NULL, NULL, applet);
 
2433
                if (!g_settings_get_boolean (applet->gsettings, PREF_DISABLE_DISCONNECTED_NOTIFICATIONS))
 
2434
                        applet_do_notify (applet, info->urgency, info->title,
 
2435
                                          info->text, info->icon,
 
2436
                                          PREF_DISABLE_DISCONNECTED_NOTIFICATIONS,
 
2437
                                          _("Don't show this message again"),
 
2438
                                          notify_dont_show_cb,
 
2439
                                          applet);
2434
2440
        else
2435
2441
                g_debug("no notification because merged found that we have nothing to say (e.g. not offline)");
2436
2442
        if (info->title)