From ba4240d6820b74749e64dec614dded8db4bf70fc Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 1 Nov 2011 18:23:20 +0000 Subject: LinGui: fix initial subtitle selection combo box selection was not getting initialized, so showed no selection. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4335 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/hb-backend.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gtk/src') diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 900b82295..695bb5465 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -39,7 +39,7 @@ typedef struct { - const gchar *option; + gchar *option; const gchar *shortOpt; gdouble ivalue; const gchar *svalue; @@ -2221,6 +2221,8 @@ audio_track_opts_set(GtkBuilder *builder, const gchar *name, gint titleindex) audio_track_opts.map[ii].ivalue = ii; audio_track_opts.map[ii].svalue = index_str[ii]; } + GtkComboBox *combo = GTK_COMBO_BOX(GHB_WIDGET(builder, name)); + gtk_combo_box_set_active (combo, 0); } const gchar* @@ -2330,7 +2332,7 @@ subtitle_track_opts_set(GtkBuilder *builder, const gchar *name, gint titleindex) else lang = ghb_language_table[ii].eng_name; - subtitle_opts.map[ii+1].option = lang; + subtitle_opts.map[ii+1].option = (gchar*)lang; subtitle_opts.map[ii+1].shortOpt = index_str[ii]; subtitle_opts.map[ii+1].ivalue = ii; subtitle_opts.map[ii+1].svalue = ghb_language_table[ii].iso639_2; @@ -2344,6 +2346,8 @@ subtitle_track_opts_set(GtkBuilder *builder, const gchar *name, gint titleindex) -1); } } + GtkComboBox *combo = GTK_COMBO_BOX(GHB_WIDGET(builder, name)); + gtk_combo_box_set_active (combo, 0); } gint -- cgit v1.2.3