From 6874e350d53bb2e362da011d7f9c0a3befcd7e6b Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 7 Jun 2010 21:49:38 +0000 Subject: LinGui: rework some of the logic behind the audio tab handler gets rid of some duplication of values that i had. makes it easier to keep the visible list and the data structures behind it in sync. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3369 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gtk/src/main.c') diff --git a/gtk/src/main.c b/gtk/src/main.c index 2a8e4524b..7e62d6099 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -330,13 +330,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(13, G_TYPE_STRING, G_TYPE_STRING, + treestore = gtk_list_store_new(6, 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, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_DOUBLE, - 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(); -- cgit v1.2.3