diff options
author | jstebbins <[email protected]> | 2015-04-30 16:28:49 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-04-30 16:28:49 +0000 |
commit | 617dbd847bc9d0b395f83c1bc00ce688491d48fc (patch) | |
tree | 69c85d50a773c4a30989279d61cb278fedf8e3c3 /gtk/src/audiohandler.c | |
parent | bbbb8f80a9c22a91579ef5e9d08de983ff361892 (diff) |
LinGui: Fix issue with editing audio or subtitles
The edited settings were having unpredictable effects on loading
default audio or subtitle settings when a new source was scanned.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7137 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r-- | gtk/src/audiohandler.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index 0d00a65a6..47009b70f 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -1315,6 +1315,20 @@ ghb_clear_audio_list_settings(GhbValue *settings) } void +ghb_clear_audio_selection(GtkBuilder *builder) +{ + GtkTreeView *tv; + GtkTreeSelection *tsel; + + g_debug("clear_audio_list_ui ()"); + tv = GTK_TREE_VIEW(GHB_WIDGET(builder, "audio_list_view")); + // Clear tree selection so that updates are not triggered + // that cause a recursive attempt to clear the tree selection (crasher) + tsel = gtk_tree_view_get_selection(tv); + gtk_tree_selection_unselect_all(tsel); +} + +void ghb_clear_audio_list_ui(GtkBuilder *builder) { GtkTreeView *tv; |