summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-11-01 18:23:20 +0000
committerjstebbins <[email protected]>2011-11-01 18:23:20 +0000
commitba4240d6820b74749e64dec614dded8db4bf70fc (patch)
treea81768d39d83116eaad4d7c1c4c57b336bb24d0f /gtk/src
parent6e9e1c71e3e93d0bbeff9c84a27c290c3ef006ee (diff)
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
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/hb-backend.c8
1 files changed, 6 insertions, 2 deletions
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