Commit dcc3c20e authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Small modification in the audio settings window

The combo box displays the default or the selected codec
parent a870cfe5
......@@ -79,6 +79,9 @@ config_window_fill_codec_list()
GtkTreeIter iter;
gtk_list_store_clear(codec_store);
//gchar * description = "Select a codec:";
//gtk_list_store_append(codec_store, &iter);
//gtk_list_store_set(codec_store, &iter, 0, description, -1);
int i=0;
gchar** codecs = (gchar**)dbus_codec_list();
while(codecs[i]!=NULL)
......@@ -352,7 +355,6 @@ create_audio_tab ()
gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo_box), renderer, TRUE);
gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(combo_box), renderer, "text",0,NULL);
gtk_box_pack_start(GTK_BOX(ret), combo_box, FALSE, TRUE,0);
gtk_combo_box_set_active(combo_box, 0);
g_signal_connect (G_OBJECT (combo_box), "changed",
......@@ -362,6 +364,7 @@ create_audio_tab ()
gtk_widget_show_all(ret);
config_window_fill_codec_list();
gtk_combo_box_set_active(combo_box, 0);
return ret;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment