diff options
author | jstebbins <[email protected]> | 2009-03-04 17:17:41 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-03-04 17:17:41 +0000 |
commit | 103f4bb2dfe194dc7bee565fc981fcd8c5beed88 (patch) | |
tree | 10472bf5cc8522a5669fe8ee237d7fdc2e1e905e /gtk/src/main.c | |
parent | 5a78e4159779197c9c0a89131418408e3fad826e (diff) |
LinGui:
add chapter duration display to chapter tab
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2216 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index fa2ef4b7d..086373912 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -207,17 +207,22 @@ bind_chapter_tree_model (signal_user_data_t *ud) g_debug("bind_chapter_tree_model ()\n"); treeview = GTK_TREE_VIEW(GHB_WIDGET (ud->builder, "chapters_list")); selection = gtk_tree_view_get_selection (treeview); - treestore = gtk_list_store_new(3, G_TYPE_INT, G_TYPE_STRING, G_TYPE_BOOLEAN); + treestore = gtk_list_store_new(4, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN); gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(treestore)); cell = ghb_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes( - _("Chapter No."), cell, "text", 0, NULL); + _("Index"), cell, "text", 0, NULL); gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); cell = ghb_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes( - _("Chapter Title"), cell, "text", 1, "editable", 2, NULL); + _("Duration"), cell, "text", 1, NULL); + gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); + + cell = ghb_cell_renderer_text_new(); + column = gtk_tree_view_column_new_with_attributes( + _("Title"), cell, "text", 2, "editable", 3, NULL); gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); g_signal_connect(cell, "key-press-event", chapter_keypress_cb, ud); |