summaryrefslogtreecommitdiffstats
path: root/gtk/src/subtitlehandler.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-06-08 23:01:48 +0000
committerjstebbins <[email protected]>2009-06-08 23:01:48 +0000
commit110f5b27f7370c38e4266c9a208d7a8594121c73 (patch)
tree91cb1af58072f1ee8035f94743f08aa8c13b3c9f /gtk/src/subtitlehandler.c
parent8dc32d2cfd52a1f1b97a2360d04241c9e2d96b13 (diff)
LinGui: revert the extra widgets for subtitle foreign audio search
put it back in the list with the normal subtitle tracks. gets rid of extra preset keys that were really unnecessary git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2504 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/subtitlehandler.c')
-rw-r--r--gtk/src/subtitlehandler.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c
index 1a54fecf3..ea863b612 100644
--- a/gtk/src/subtitlehandler.c
+++ b/gtk/src/subtitlehandler.c
@@ -71,12 +71,6 @@ ghb_subtitle_exclusive_burn(signal_user_data_t *ud, gint index)
g_debug("ghb_subtitle_exclusive_burn");
subtitle_list = ghb_settings_get_value(ud->settings, "subtitle_list");
count = ghb_array_len(subtitle_list);
- if (index != -1)
- {
- burned = ghb_settings_get_boolean(ud->settings, "SubtitleForeignBurned");
- if (burned && !mustBurn(ud, -1))
- ghb_ui_update(ud, "SubtitleForeignBurned", ghb_boolean_value(FALSE));
- }
for (ii = 0; ii < count; ii++)
{
settings = ghb_array_get_nth(subtitle_list, ii);
@@ -109,12 +103,6 @@ ghb_subtitle_exclusive_default(signal_user_data_t *ud, gint index)
g_debug("ghb_subtitle_exclusive_default");
subtitle_list = ghb_settings_get_value(ud->settings, "subtitle_list");
count = ghb_array_len(subtitle_list);
- if (index != -1)
- {
- def = ghb_settings_get_boolean(ud->settings, "SubtitleForeignDefaultTrack");
- if (def)
- ghb_ui_update(ud, "SubtitleForeignDefaultTrack", ghb_boolean_value(FALSE));
- }
for (ii = 0; ii < count; ii++)
{
settings = ghb_array_get_nth(subtitle_list, ii);
@@ -128,7 +116,6 @@ ghb_subtitle_exclusive_default(signal_user_data_t *ud, gint index)
{
ghb_settings_set_boolean(settings, "SubtitleDefaultTrack", FALSE);
- def = FALSE;
gtk_list_store_set(GTK_LIST_STORE(tm), &ti, 3, FALSE, -1);
}
}
@@ -723,7 +710,7 @@ ghb_subtitle_prune(signal_user_data_t *ud)
GValue *subtitle_list, *settings;
gint count, ii, track;
gboolean burned;
- gint first_track, one_burned = 0;
+ gint first_track = 0, one_burned = 0;
subtitle_list = ghb_settings_get_value(ud->settings, "subtitle_list");
if (subtitle_list == NULL)
@@ -754,13 +741,6 @@ ghb_subtitle_prune(signal_user_data_t *ud)
{
ghb_subtitle_exclusive_burn(ud, first_track);
}
- int mux;
- mux = ghb_settings_combo_int(ud->settings, "FileFormat");
- if (mux == HB_MUX_MP4)
- {
- ghb_ui_update(ud, "SubtitleForeignBurned", ghb_boolean_value(TRUE));
- ghb_ui_update(ud, "SubtitleForeignDefaultTrack", ghb_boolean_value(FALSE));
- }
}
void
@@ -786,21 +766,3 @@ ghb_reset_subtitles(signal_user_data_t *ud, GValue *settings)
}
}
-G_MODULE_EXPORT void
-subtitle_foreign_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
-{
- ghb_widget_to_setting(ud->settings, widget);
- ghb_check_dependency(ud, widget);
- ghb_clear_presets_selection(ud);
- ghb_live_reset(ud);
-
- if (ghb_settings_get_boolean(ud->settings, "SubtitleForeignBurned"))
- {
- ghb_subtitle_exclusive_burn(ud, -1);
- }
- if (ghb_settings_get_boolean(ud->settings, "SubtitleForeignDefaultTrack"))
- {
- ghb_subtitle_exclusive_default(ud, -1);
- }
-}
-