Skip to content
Snippets Groups Projects
Commit 9bad902c authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #10725: audioconf: cleanup

parent 7379d58b
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,7 @@ select_active_output_audio_device() ...@@ -184,7 +184,7 @@ select_active_output_audio_device()
} while (gtk_tree_model_iter_next(model, &iter)); } while (gtk_tree_model_iter_next(model, &iter));
// No index was found, select first one // No index was found, select first one
WARN("Warning : No active output device found"); WARN("No active output device found");
gtk_combo_box_set_active(GTK_COMBO_BOX(output), 0); gtk_combo_box_set_active(GTK_COMBO_BOX(output), 0);
} }
...@@ -533,7 +533,7 @@ GtkWidget* audiocodecs_box(const account_t *account) ...@@ -533,7 +533,7 @@ GtkWidget* audiocodecs_box(const account_t *account)
G_TYPE_STRING, /* Name */ G_TYPE_STRING, /* Name */
G_TYPE_STRING, /* Frequency */ G_TYPE_STRING, /* Frequency */
G_TYPE_STRING, /* Bit rate */ G_TYPE_STRING, /* Bit rate */
G_TYPE_STRING /* Bandwith */ G_TYPE_STRING /* Bandwidth */
); );
// Create codec tree view with list store // Create codec tree view with list store
...@@ -677,7 +677,7 @@ GtkWidget* alsa_box() ...@@ -677,7 +677,7 @@ GtkWidget* alsa_box()
GtkWidget *info_bar = gnome_info_bar(message, GTK_MESSAGE_INFO); GtkWidget *info_bar = gnome_info_bar(message, GTK_MESSAGE_INFO);
gtk_table_attach(GTK_TABLE(table), info_bar, 1, 3, 1, 2, GTK_FILL, GTK_SHRINK, 10, 10); gtk_table_attach(GTK_TABLE(table), info_bar, 1, 3, 1, 2, GTK_FILL, GTK_SHRINK, 10, 10);
DEBUG("Audio: Configuration plugin"); DEBUG("Configuration plugin");
GtkWidget *label = gtk_label_new(_("ALSA plugin")); GtkWidget *label = gtk_label_new(_("ALSA plugin"));
gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_table_attach(GTK_TABLE(table), label, 1, 2, 2, 3, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 2, 3, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0);
...@@ -699,7 +699,7 @@ GtkWidget* alsa_box() ...@@ -699,7 +699,7 @@ GtkWidget* alsa_box()
// Device : Output device // Device : Output device
// Create title label // Create title label
DEBUG("Audio: Configuration output"); DEBUG("Configuration output");
label = gtk_label_new(_("Output")); label = gtk_label_new(_("Output"));
gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_table_attach(GTK_TABLE(table), label, 1, 2, 3, 4, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 3, 4, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0);
...@@ -721,7 +721,7 @@ GtkWidget* alsa_box() ...@@ -721,7 +721,7 @@ GtkWidget* alsa_box()
// Device : Input device // Device : Input device
// Create title label // Create title label
DEBUG("Audio: Configuration input"); DEBUG("Configuration input");
label = gtk_label_new(_("Input")); label = gtk_label_new(_("Input"));
gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_table_attach(GTK_TABLE(table), label, 1, 2, 4, 5, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 4, 5, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0);
...@@ -742,7 +742,7 @@ GtkWidget* alsa_box() ...@@ -742,7 +742,7 @@ GtkWidget* alsa_box()
gtk_table_attach(GTK_TABLE(table), input, 2, 3, 4, 5, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_table_attach(GTK_TABLE(table), input, 2, 3, 4, 5, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0);
gtk_widget_show(input); gtk_widget_show(input);
DEBUG("Audio: Configuration rintgtone"); DEBUG("Configuration rintgtone");
label = gtk_label_new(_("Ringtone")); label = gtk_label_new(_("Ringtone"));
gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_table_attach(GTK_TABLE(table), label, 1, 2, 5, 6, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 5, 6, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 0, 0);
...@@ -827,7 +827,7 @@ GtkWidget* create_audio_configuration() ...@@ -827,7 +827,7 @@ GtkWidget* create_audio_configuration()
GtkWidget *folderChooser = gtk_file_chooser_button_new(_("Select a folder"), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); GtkWidget *folderChooser = gtk_file_chooser_button_new(_("Select a folder"), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
/* Get the path where to save audio files */ /* Get the path where to save audio files */
gchar *recordingPath = dbus_get_record_path(); gchar *recordingPath = dbus_get_record_path();
DEBUG("AudioConf: Load recording path %s", recordingPath); DEBUG("Load recording path %s", recordingPath);
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(folderChooser), recordingPath); gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(folderChooser), recordingPath);
g_free(recordingPath); g_free(recordingPath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment