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

* #6085: renamed codecs* widgets/functions audiocodecs*

parent faedc4fa
Branches
No related tags found
No related merge requests found
...@@ -1211,11 +1211,11 @@ void ringtone_enabled (GtkWidget *widget UNUSED, gpointer fileChooser, const gch ...@@ -1211,11 +1211,11 @@ void ringtone_enabled (GtkWidget *widget UNUSED, gpointer fileChooser, const gch
} }
GtkWidget* create_codecs_configuration (account_t **a) GtkWidget* create_audiocodecs_configuration (account_t **a)
{ {
// Main widget // Main widget
GtkWidget *ret, *codecs, *dtmf, *box, *frame, *sipinfo, *table; GtkWidget *ret, *audiocodecs, *dtmf, *box, *frame, *sipinfo, *table;
account_t *currentAccount = *a; account_t *currentAccount = *a;
gchar *currentDtmfType = ""; gchar *currentDtmfType = "";
gboolean dtmf_are_rtp = TRUE; gboolean dtmf_are_rtp = TRUE;
...@@ -1224,14 +1224,14 @@ GtkWidget* create_codecs_configuration (account_t **a) ...@@ -1224,14 +1224,14 @@ GtkWidget* create_codecs_configuration (account_t **a)
ret = gtk_vbox_new (FALSE, 10); ret = gtk_vbox_new (FALSE, 10);
gtk_container_set_border_width (GTK_CONTAINER (ret), 10); gtk_container_set_border_width (GTK_CONTAINER (ret), 10);
box = codecs_box (a); box = audiocodecs_box (a);
// Box for the codecs // Box for the audiocodecs
gnome_main_section_new (_ ("Audio"), &codecs); gnome_main_section_new (_ ("Audio"), &audiocodecs);
gtk_box_pack_start (GTK_BOX (ret), codecs, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (ret), audiocodecs, FALSE, FALSE, 0);
gtk_widget_set_size_request (GTK_WIDGET (codecs), -1, 200); gtk_widget_set_size_request (GTK_WIDGET (audiocodecs), -1, 200);
gtk_widget_show (codecs); gtk_widget_show (audiocodecs);
gtk_container_add (GTK_CONTAINER (codecs) , box); gtk_container_add (GTK_CONTAINER (audiocodecs) , box);
// Add DTMF type selection for SIP account only // Add DTMF type selection for SIP account only
p = g_hash_table_lookup (currentAccount->properties, g_strdup (ACCOUNT_TYPE)); p = g_hash_table_lookup (currentAccount->properties, g_strdup (ACCOUNT_TYPE));
...@@ -1300,7 +1300,7 @@ void show_account_window (account_t * a) ...@@ -1300,7 +1300,7 @@ void show_account_window (account_t * a)
{ {
GtkWidget * notebook; GtkWidget * notebook;
GtkWidget *tab, *codecs_tab, *ip_tab; GtkWidget *tab, *audiocodecs_tab, *ip_tab;
gint response; gint response;
account_t *currentAccount; account_t *currentAccount;
...@@ -1352,10 +1352,10 @@ void show_account_window (account_t * a) ...@@ -1352,10 +1352,10 @@ void show_account_window (account_t * a)
} }
/* Codecs */ /* Audio Codecs */
codecs_tab = create_codecs_configuration (&currentAccount); audiocodecs_tab = create_audiocodecs_configuration (&currentAccount);
gtk_notebook_append_page (GTK_NOTEBOOK (notebook), codecs_tab, gtk_label_new (_ ("Audio"))); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), audiocodecs_tab, gtk_label_new (_ ("Audio")));
gtk_notebook_page_num (GTK_NOTEBOOK (notebook), codecs_tab); gtk_notebook_page_num (GTK_NOTEBOOK (notebook), audiocodecs_tab);
// Get current protocol for this account protocol // Get current protocol for this account protocol
gchar *currentProtocol = "SIP"; gchar *currentProtocol = "SIP";
......
...@@ -641,7 +641,7 @@ static void codec_move_down (GtkButton *button UNUSED, gpointer data) ...@@ -641,7 +641,7 @@ static void codec_move_down (GtkButton *button UNUSED, gpointer data)
codec_move (FALSE, data); codec_move (FALSE, data);
} }
GtkWidget* codecs_box (account_t **a) GtkWidget* audiocodecs_box (account_t **a)
{ {
GtkWidget *ret; GtkWidget *ret;
GtkWidget *scrolledWindow; GtkWidget *scrolledWindow;
......
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
#include "actions.h" #include "actions.h"
GtkWidget* create_audio_configuration (void); GtkWidget* create_audio_configuration (void);
GtkWidget* create_codecs_configuration (account_t **a); GtkWidget* create_audiocodecs_configuration (account_t **a);
GtkWidget* api_box(); GtkWidget* api_box();
GtkWidget* alsa_box(); GtkWidget* alsa_box();
GtkWidget* pulse_box(); GtkWidget* pulse_box();
GtkWidget* codecs_box(); GtkWidget* audiocodecs_box();
GtkWidget* ringtone_box(); GtkWidget* ringtone_box();
gboolean get_api(); gboolean get_api();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment