summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-04-26 01:02:54 +0000
committerjstebbins <[email protected]>2015-04-26 01:02:54 +0000
commit63f94fea1d6eb475ed779f638cb26dccdf4d34c9 (patch)
tree2181148b7deee6bd7ea79fd4662ab024e6a8bd86 /gtk
parent780d8a9a1c86a27c8608f0cdca3a8b58cc9fb894 (diff)
LinGui: Allow setting p-to-p end time beyond guessed duration
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7126 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/callbacks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index c4824cf8a..9f50c7736 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -1089,9 +1089,9 @@ ghb_set_widget_ranges(signal_user_data_t *ud, GhbValue *settings)
else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 1)
{
val = ghb_dict_get_int(ud->settings, "start_point");
- spin_configure(ud, "start_point", val, 0, duration-1);
+ spin_configure(ud, "start_point", val, 0, duration * 2 - 1);
val = ghb_dict_get_int(ud->settings, "end_point");
- spin_configure(ud, "end_point", val, 0, duration);
+ spin_configure(ud, "end_point", val, 0, duration * 2);
}
else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 2)
{
@@ -2021,8 +2021,8 @@ ptop_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
}
else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 1)
{
- spin_configure(ud, "start_point", 0, 0, duration-1);
- spin_configure(ud, "end_point", duration, 0, duration);
+ spin_configure(ud, "start_point", 0, 0, duration * 2 - 1);
+ spin_configure(ud, "end_point", duration, 0, duration * 2);
}
else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 2)
{