diff options
author | jstebbins <[email protected]> | 2009-05-20 23:39:06 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-05-20 23:39:06 +0000 |
commit | dc39beecfc4d7ed31bfe0d62e771d12b5775133f (patch) | |
tree | 9e54084339c5f7aaaa383ed23b4bd901992fd072 /gtk/src/main.c | |
parent | 998a6adf0e9f4697ea6cfa6fdff8cf8c0f3af1a1 (diff) |
LinGui:
- Move the subtitle track combo into the treeview list
Each subtitle entry has its own combo to select the track now
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2433 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index a9c07fab2..74f7bf83a 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -379,6 +379,7 @@ bind_audio_tree_model (signal_user_data_t *ud) extern G_MODULE_EXPORT void subtitle_list_selection_changed_cb(void); extern G_MODULE_EXPORT void subtitle_forced_toggled_cb(void); extern G_MODULE_EXPORT void subtitle_burned_toggled_cb(void); +extern G_MODULE_EXPORT void subtitle_track_changed_cb(void); // Create and bind the tree model to the tree view for the subtitle track list // Also, connect up the signal that lets us know the selection has changed @@ -405,10 +406,14 @@ bind_subtitle_tree_model (signal_user_data_t *ud) G_TYPE_INT); gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(treestore)); - cell = gtk_cell_renderer_text_new(); + cell = gtk_cell_renderer_combo_new(); + ghb_subtitle_track_model(ud, -1); + g_object_set(G_OBJECT(cell), "model", ud->subtitle_track_model, + "text-column", 0, "editable", TRUE, "width", 200, "has-entry", FALSE, NULL); column = gtk_tree_view_column_new_with_attributes( _("Track"), cell, "text", 0, "foreground", 5, "weight", 6, "style", 7, NULL); gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); + g_signal_connect(cell, "changed", subtitle_track_changed_cb, ud); cell = gtk_cell_renderer_toggle_new(); column = gtk_tree_view_column_new_with_attributes( |