~ubuntu-branches/ubuntu/saucy/network-manager-applet/saucy-updates

« back to all changes in this revision

Viewing changes to .pc/lp829673_gconf_hide_applet.patch/src/applet.c

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-08-10 15:44:44 UTC
  • mfrom: (1.2.30)
  • Revision ID: package-import@ubuntu.com-20120810154444-nmjepmyshkpbxt60
Tags: 0.9.6.2-0ubuntu1
* New upstream release.
  - Fix GNOME Bluetooth plugin DUN modem detection and setup
  - Various crash and stability fixes
  - Allow appending DNS servers and domains in automatic addressing mode
  - Fix defaults for PPP echo values
  - Show IPv6 addressing page for VPN plugins that support it
  - Port to GSettings and split out 0.8 -> 0.9 migration code
  - Recognize PKCS#12 certificates imported from Firefox
  - Pre-fill CDMA username/password in the mobile broadband wizard
  - Only handle VPN secrets for GNOME Shell 3.3 and lower
* debian/control: Bump Depends and Build-Depends to (>= 0.9.6) for
  network-manager and the libnm-{glib,util,glib-vpn}-dev packages.
* debian/patches/git_fix_some_leaks_80ef61b.patch: cherry-picked patch to
  fix a few leaks: g_object_get() and gtk_tree_model_get() copy/ref the
  values they return, so make sure to deal with that everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3386
3386
{
3387
3387
        NMApplet *applet = user_data;
3388
3388
 
 
3389
        if (applet->agent_start_id) {
 
3390
                g_source_remove (applet->agent_start_id);
 
3391
                applet->agent_start_id = 0;
 
3392
        }
 
3393
 
 
3394
        if (!applet->agent)
 
3395
                return;
 
3396
 
3389
3397
        if (nm_shell_watcher_version_at_least (watcher, 3, 4)) {
3390
 
                if (applet->agent_start_id)
3391
 
                        g_source_remove (applet->agent_start_id);
3392
 
 
3393
 
                if (applet->agent && nm_secret_agent_get_registered (NM_SECRET_AGENT (applet->agent))) {
 
3398
                /* GNOME Shell handles all secrets requests */
 
3399
                if (nm_secret_agent_get_registered (NM_SECRET_AGENT (applet->agent))) {
3394
3400
                        g_message ("Stopping applet secret agent because GNOME Shell appeared");
3395
3401
                        nm_secret_agent_unregister (NM_SECRET_AGENT (applet->agent));
3396
3402
                }
 
3403
        } else if (nm_shell_watcher_version_at_least (watcher, 3, 2)) {
 
3404
                /* GNOME Shell handles everything except VPN secrets requests */
 
3405
                if (nm_secret_agent_get_registered (NM_SECRET_AGENT (applet->agent)))
 
3406
                        g_message ("Applet secret agent handling only VPN secrets because GNOME Shell appeared");
 
3407
                applet_agent_handle_vpn_only (applet->agent, TRUE);
3397
3408
        } else {
3398
3409
                /* If the shell quit and our agent wasn't already registered, do it
3399
 
                 * now on a delay (just in case the shell is restarting.
 
3410
                 * now on a delay (just in case the shell is restarting).
3400
3411
                 */
3401
 
                if (applet->agent_start_id)
3402
 
                        g_source_remove (applet->agent_start_id);
3403
 
 
3404
 
                if (nm_secret_agent_get_registered (NM_SECRET_AGENT (applet->agent)) == FALSE)
 
3412
                if (!nm_secret_agent_get_registered (NM_SECRET_AGENT (applet->agent)))
3405
3413
                        applet->agent_start_id = g_timeout_add_seconds (4, delayed_start_agent, applet);
 
3414
                applet_agent_handle_vpn_only (applet->agent, FALSE);
3406
3415
        }
3407
3416
}
3408
3417
#endif