~cjcurran/+junk/soundnua-gtk-warnings

« back to all changes in this revision

Viewing changes to soundnua/gvc-mixer-dialog.c

  • Committer: Conor Curran
  • Date: 2012-04-10 20:14:04 UTC
  • Revision ID: conor.curran@canonical.com-20120410201404-9waj7u3ar8ki3bk2
replace all prints with g_debugs

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
                           const char  *profile,
190
190
                           GvcMixerDialog *dialog)
191
191
{       
192
 
        g_print ("profile_selection_changed - %s", profile);
 
192
        g_debug ("profile_selection_changed - %s", profile);
193
193
        GvcMixerUIDevice *out;
194
194
        out = g_object_get_data (G_OBJECT (combo_box), "uidevice");
195
195
        
198
198
                return;
199
199
        }
200
200
 
201
 
        g_print (" \n on profile selection changed on output with \n description %s \n origin %s \n id %i \n \n",
 
201
        g_debug (" \n on profile selection changed on output with \n description %s \n origin %s \n id %i \n \n",
202
202
                gvc_mixer_ui_device_get_description (out),
203
203
                gvc_mixer_ui_device_get_origin (out),
204
204
                gvc_mixer_ui_device_get_id (out));
629
629
                     GvcMixerStream *stream,
630
630
                     GtkWidget      *bar)
631
631
{
632
 
        g_print ("\n saving bar for stream %s",
 
632
        g_debug ("\n saving bar for stream %s",
633
633
                 gvc_mixer_stream_get_name (stream));
634
634
        g_hash_table_insert (dialog->priv->bars,
635
635
                             GUINT_TO_POINTER (gvc_mixer_stream_get_id (stream)),
695
695
active_input_update (GvcMixerDialog *dialog,
696
696
                     GvcMixerUIDevice *active_input)
697
697
{         
698
 
        g_print ("\n active_input_update %s \n", gvc_mixer_ui_device_get_description (active_input));
 
698
        g_debug ("\n active_input_update %s \n", gvc_mixer_ui_device_get_description (active_input));
699
699
        // First make sure the correct UI device is selected.
700
700
        GtkTreeModel *model;
701
701
        GtkTreeIter   iter;
818
818
        // First make sure the correct UI device is selected.
819
819
        GtkTreeModel *model;
820
820
        GtkTreeIter   iter;
821
 
        g_print ("\n\n active output update - device id = %i \n\n",
 
821
        g_debug ("\n\n active output update - device id = %i \n\n",
822
822
                 gvc_mixer_ui_device_get_id (active_output));
823
823
 
824
824
        model = gtk_tree_view_get_model (GTK_TREE_VIEW (dialog->priv->output_treeview));
838
838
                                    -1);
839
839
 
840
840
                if (is_selected && id == gvc_mixer_ui_device_get_id (active_output)) {
841
 
                        g_print ("\n\n unneccessary active output update unless it was a profile change on the same device ? \n\n");
 
841
                        g_debug ("\n\n unneccessary active output update unless it was a profile change on the same device ? \n\n");
842
842
                }
843
843
 
844
844
                is_selected = id == gvc_mixer_ui_device_get_id (active_output);
925
925
        gtk_label_set_label (GTK_LABEL(dialog->priv->selected_output_label),
926
926
                             g_strdup_printf(_("Settings for %s"),
927
927
                                             gvc_mixer_ui_device_get_description (active_output)));
928
 
        g_print ("\n active_output_update %s \n", gvc_mixer_ui_device_get_description (active_output));
 
928
        g_debug ("\n active_output_update %s \n", gvc_mixer_ui_device_get_description (active_output));
929
929
 
930
930
        const GHashTable *profs_entries;
931
931
        profs_entries = gvc_mixer_ui_device_get_profiles (active_output);
1026
1026
                // Must be a sink/source input/output
1027
1027
                const char *name;
1028
1028
                name = gvc_mixer_stream_get_name (stream);
1029
 
                g_print ("\n Add bar for application stream : %s",
 
1029
                g_debug ("\n Add bar for application stream : %s",
1030
1030
                             name);
1031
1031
 
1032
1032
                bar = create_app_bar (dialog, name,
1148
1148
add_input_ui_entry (GvcMixerDialog *dialog,
1149
1149
                    GvcMixerUIDevice *input)
1150
1150
{
1151
 
        g_print ("\n Add input ui entry with id : %u \n",
 
1151
        g_debug ("\n Add input ui entry with id : %u \n",
1152
1152
                  gvc_mixer_ui_device_get_id (input));
1153
1153
 
1154
1154
        gchar    *port_name;
1174
1174
 
1175
1175
        if (card_id == GVC_MIXER_UI_DEVICE_INVALID) {
1176
1176
                GvcMixerStream *stream;
1177
 
                g_print ("just detected a network source");
 
1177
                g_debug ("just detected a network source");
1178
1178
                stream = gvc_mixer_control_get_stream_from_device (dialog->priv->mixer_control, input);
1179
1179
                if (stream == NULL) {
1180
1180
                        g_warning ("tried to add the network source but the stream was null - fail ?!");
1222
1222
add_output_ui_entry (GvcMixerDialog *dialog,
1223
1223
                     GvcMixerUIDevice *output)
1224
1224
{
1225
 
        g_print ("\n Add output ui entry with id : %u \n",
 
1225
        g_debug ("\n Add output ui entry with id : %u \n",
1226
1226
                  gvc_mixer_ui_device_get_id (output));
1227
1227
 
1228
1228
        gchar    *sink_port_name;
1248
1248
        GIcon               *icon;
1249
1249
 
1250
1250
        if (card_id == GVC_MIXER_UI_DEVICE_INVALID) {
1251
 
                g_print ("just detected a network sink");
 
1251
                g_debug ("just detected a network sink");
1252
1252
                
1253
1253
                GvcMixerStream *stream;
1254
1254
                stream = gvc_mixer_control_get_stream_from_device (dialog->priv->mixer_control, output);
1374
1374
                     "stream-id", &sink_stream_id,
1375
1375
                      NULL);
1376
1376
                      
1377
 
        g_print ("Remove output from dialog \n id : %u \n sink stream id : %i \n",
 
1377
        g_debug ("Remove output from dialog \n id : %u \n sink stream id : %i \n",
1378
1378
                  id,
1379
1379
                  sink_stream_id);
1380
1380
 
1407
1407
                     "stream-id", &stream_id,
1408
1408
                      NULL);
1409
1409
                      
1410
 
        g_print ("Remove input from dialog \n id : %u \n stream id : %i \n",
 
1410
        g_debug ("Remove input from dialog \n id : %u \n stream id : %i \n",
1411
1411
                  id,
1412
1412
                  stream_id);
1413
1413
 
1461
1461
 
1462
1462
        toggled ^= 1;
1463
1463
        GvcMixerUIDevice *input;
1464
 
        //g_print ("on_input_selection_changed - try swap to input with id %u", id); 
 
1464
        //g_debug ("on_input_selection_changed - try swap to input with id %u", id); 
1465
1465
        input = gvc_mixer_control_lookup_input_id (dialog->priv->mixer_control, id);
1466
1466
        
1467
1467
        if (input == NULL) {
1491
1491
                            ACTIVE_COLUMN, &active,
1492
1492
                            -1);
1493
1493
        
1494
 
        g_print ("\n\n on_output_selection_changed - active %i \n\n", active); 
 
1494
        g_debug ("\n\n on_output_selection_changed - active %i \n\n", active); 
1495
1495
        if (active){
1496
1496
                return;
1497
1497
        }
1498
1498
 
1499
1499
        GvcMixerUIDevice *output;
1500
 
        g_print ("\n on_output_selection_changed - try swap to output with id %u", id); 
 
1500
        g_debug ("\n on_output_selection_changed - try swap to output with id %u", id); 
1501
1501
        output = gvc_mixer_control_lookup_output_id (dialog->priv->mixer_control, id);
1502
1502
        
1503
1503
        if (output == NULL) {
1654
1654
        if (stream_id == GVC_MIXER_UI_DEVICE_INVALID)
1655
1655
                return;
1656
1656
 
1657
 
        g_print ("Test the speakers on the %s", gvc_mixer_ui_device_get_description (output));
 
1657
        g_debug ("Test the speakers on the %s", gvc_mixer_ui_device_get_description (output));
1658
1658
        
1659
1659
        GvcMixerStream        *stream;
1660
1660
        GvcMixerCardProfile *profile;
1663
1663
 
1664
1664
        stream = gvc_mixer_control_lookup_stream_id (dialog->priv->mixer_control, stream_id);
1665
1665
        if (stream == NULL) {
1666
 
                g_print ("Stream/sink not found");
 
1666
                g_debug ("Stream/sink not found");
1667
1667
                return;
1668
1668
        }
1669
1669
        title = g_strdup_printf (_("Speaker Testing for %s"), gvc_mixer_ui_device_get_description (output));