~bbboson/ubuntu/precise/gnome-control-center/fix-for-1236612

« back to all changes in this revision

Viewing changes to panels/sound-nua/gvc-mixer-ui-device.c

  • Committer: Package Import Robot
  • Author(s): Margarita Manterola, David Henningsson
  • Date: 2013-02-05 11:55:06 UTC
  • Revision ID: package-import@ubuntu.com-20130205115506-io7668hg5zqcln4u
Tags: 1:3.4.2-0ubuntu0.10
* Added debian/patches/remove-manual-proxy-in-auto.patch to also remove
  the manual proxy setting when in AUTO mode. (LP: #1100587)
  
[ David Henningsson ]
* debian/patches/96_sound_nua_panel.patch:
  - don't allow to turn bluetooth devices off, or they are dropped from
    the devices list with is no way to turn them back on (lp: #1071561)

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
 
466
466
                        g_free(canonical_name);
467
467
 
 
468
                        if (p->n_sinks == 0 && p->n_sources == 0) {
 
469
                                /* TODO: Right now, make sure this profile is not added, because when selected,
 
470
                                   the item will disappear and there's no way to get it back. In the long
 
471
                                   term, make sure we handle the OFF profile better. */
 
472
                                continue;
 
473
                        }
 
474
 
468
475
                        g_debug("Adding profile to combobox: '%s' - '%s'", p->profile, p->human_profile);
469
476
            g_hash_table_insert(added_profiles, g_strdup(p->profile), p);
470
477
            g_hash_table_insert(device->priv->profiles, g_strdup(p->human_profile), p);
655
662
{
656
663
        return dev->priv->port_name == NULL && dev->priv->card_id != GVC_MIXER_UI_DEVICE_INVALID;       
657
664
}
658
 
 
659
 
gboolean
660
 
gvc_mixer_ui_device_is_output (GvcMixerUIDevice *dev)
661
 
{
662
 
        return dev->priv->type == UiDeviceOutput;       
663
 
}
664