summaryrefslogtreecommitdiffstats
path: root/gtk/src/presets.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-12-23 00:05:05 +0000
committerjstebbins <[email protected]>2009-12-23 00:05:05 +0000
commit93416da6f241eba72979685ab98f89e33ae6f2e0 (patch)
tree91f936c05910572257bdcaaddb01ea0ca27159ef /gtk/src/presets.c
parent2e7008572201e59568805cb38c1dd1dc8ad4ae42 (diff)
LinGui: add point-to-point
the user can now select between chapter, seconds, or frame start and end points for encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3041 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/presets.c')
-rw-r--r--gtk/src/presets.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index fca8c9304..b59efca79 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -4087,16 +4087,20 @@ presets_list_selection_changed_cb(GtkTreeSelection *selection, signal_user_data_
g_debug("No selection??? Perhaps unselected.");
gtk_widget_set_sensitive(widget, FALSE);
}
- gint start = ghb_settings_get_int(ud->settings, "start_chapter");
- gint end = ghb_settings_get_int(ud->settings, "end_chapter");
- widget = GHB_WIDGET (ud->builder, "ChapterMarkers");
- gtk_widget_set_sensitive(widget, TRUE);
- if (start == end)
- {
- ud->dont_clear_presets = TRUE;
- ghb_ui_update(ud, "ChapterMarkers", ghb_boolean_value(FALSE));
- ud->dont_clear_presets = FALSE;
- gtk_widget_set_sensitive(widget, FALSE);
+ if (ghb_settings_combo_int(ud->settings, "PtoPType") == 0)
+ {
+ gint start, end;
+ start = ghb_settings_get_int(ud->settings, "start_point");
+ end = ghb_settings_get_int(ud->settings, "end_point");
+ widget = GHB_WIDGET (ud->builder, "ChapterMarkers");
+ gtk_widget_set_sensitive(widget, TRUE);
+ if (start == end)
+ {
+ ud->dont_clear_presets = TRUE;
+ ghb_ui_update(ud, "ChapterMarkers", ghb_boolean_value(FALSE));
+ ud->dont_clear_presets = FALSE;
+ gtk_widget_set_sensitive(widget, FALSE);
+ }
}
}