From 6c75ac124c15e395e3e8b004a188d262d8d3b692 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 5 Apr 2011 20:46:35 +0000 Subject: LinGui: add audio gain adjustment and create advanced audio dialog. Gain, DRC, and Sample Rate are now in an advanced audio dialog. This makes the audio tab less crowded and makes room for future improvements. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3903 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/main.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gtk/src/main.c') diff --git a/gtk/src/main.c b/gtk/src/main.c index 176f0f489..7b5f3b6c6 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -333,9 +333,9 @@ bind_audio_tree_model (signal_user_data_t *ud) selection = gtk_tree_view_get_selection (treeview); // 12 columns in model. 6 are visible, the other 6 are for storing // values that I need - treestore = gtk_list_store_new(6, G_TYPE_STRING, G_TYPE_STRING, + treestore = gtk_list_store_new(7, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING); + G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(treestore)); cell = gtk_cell_renderer_text_new(); @@ -371,7 +371,12 @@ bind_audio_tree_model (signal_user_data_t *ud) cell = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes( - _("DRC"), cell, "text", 5, NULL); + _("Gain"), cell, "text", 5, NULL); + gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); + + cell = gtk_cell_renderer_text_new(); + column = gtk_tree_view_column_new_with_attributes( + _("DRC"), cell, "text", 6, NULL); gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); g_signal_connect(selection, "changed", audio_list_selection_changed_cb, ud); -- cgit v1.2.3