diff options
author | jstebbins <[email protected]> | 2011-02-11 18:22:16 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-02-11 18:22:16 +0000 |
commit | 975236f11438cbb859866efefc9486b6fb50a146 (patch) | |
tree | 9fee93025eac419a1fff251a15c3c2a9fad9d81b /gtk/src/callbacks.c | |
parent | 4c04eed8e4b78c34a455516653d2af2ce24a8cb0 (diff) |
LinGui: do not uncheck chapter markers when single chapter selected
Instead, grey out the chapter marker checkbox to indicate it is inactive
(but leave it checked) and do not enable chapter markers in the job.
This way, if the user modifies chapter selections, chapter markers will
automatically be re-enabled when more than one chapter is selected again.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3792 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 939a16134..d6dcb7a31 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1517,15 +1517,15 @@ title_changed_cb(GtkWidget *widget, signal_user_data_t *ud) gint end; widget = GHB_WIDGET (ud->builder, "ChapterMarkers"); - gtk_widget_set_sensitive(widget, TRUE); end = ghb_settings_get_int(ud->settings, "end_point"); if (1 == 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); } + else + { + gtk_widget_set_sensitive(widget, TRUE); + } } G_MODULE_EXPORT void @@ -1709,16 +1709,16 @@ start_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud) set_destination(ud); } widget = GHB_WIDGET (ud->builder, "ChapterMarkers"); - gtk_widget_set_sensitive(widget, TRUE); // End may have been changed above, get it again end = ghb_settings_get_int(ud->settings, "end_point"); 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); } + else + { + gtk_widget_set_sensitive(widget, TRUE); + } update_title_duration(ud); } else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 1) @@ -1761,16 +1761,16 @@ end_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud) set_destination(ud); } widget = GHB_WIDGET (ud->builder, "ChapterMarkers"); - gtk_widget_set_sensitive(widget, TRUE); // Start may have been changed above, get it again start = ghb_settings_get_int(ud->settings, "start_point"); 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); } + else + { + gtk_widget_set_sensitive(widget, TRUE); + } update_title_duration(ud); } else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 1) |