~ken-vandine/gnome-control-center/expose-card-ports

« back to all changes in this revision

Viewing changes to panels/sound/gvc-mixer-dialog.c

  • Committer: Conor Curran
  • Date: 2012-02-01 19:58:09 UTC
  • Revision ID: conor.curran@canonical.com-20120201195809-fdyps2euae6c8m30
and don't forget to allow users to change the profile when they should be able to

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
                           const char  *profile,
184
184
                           GvcMixerDialog *dialog)
185
185
{       
186
 
        //g_print ("profile_selection_changed - %s", profile);
187
 
        /*GvcMixerStream *stream;
188
 
        stream = g_object_get_data (G_OBJECT (combo_box), "stream");
189
 
        if (stream == NULL) {
190
 
                g_warning ("Could not find stream for port combo box");
 
186
        g_print ("profile_selection_changed - %s", profile);
 
187
        GvcMixerUIDevice *out;
 
188
        out = g_object_get_data (G_OBJECT (combo_box), "uidevice");
 
189
        if (out == NULL) {
 
190
                g_warning ("Could not find Output for profile combo box");
191
191
                return;
192
192
        }
193
 
        if (gvc_mixer_stream_change_port (stream, port) == FALSE) {
194
 
                g_warning ("Could not change port for stream");
195
 
        }*/
 
193
 
 
194
        if (gvc_mixer_control_change_profile_on_selected_device (dialog->priv->mixer_control, out, profile) == FALSE) {
 
195
                g_warning ("Could not change profile on device %s",
 
196
                gvc_mixer_ui_device_get_description (out));
 
197
        }
196
198
}
197
199
 
198
200
#define DECAY_STEP .15
869
871
 
870
872
        GList* profiles;
871
873
        profiles = gvc_mixer_ui_device_get_profiles (active_output);
872
 
        
 
874
 
873
875
        if (profiles != NULL) {
874
876
                dialog->priv->output_port_combo = gvc_combo_box_new (_("Mode:"));                
875
877
                gvc_combo_box_set_profiles (GVC_COMBO_BOX (dialog->priv->output_port_combo),