diff options
author | jstebbins <[email protected]> | 2009-06-26 17:18:51 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-06-26 17:18:51 +0000 |
commit | af876ffaa55ba8c063703a18c4e0329349362144 (patch) | |
tree | ce5e44b1344975916592a150b17370b84eb21f3e /gtk/src/hb-backend.c | |
parent | 1456b9deb100c144680b9658c7b54e0dffb07e90 (diff) |
LinGui: add preference option for what to do when encode is complete
- Options are nothing, notify, sleep, shutdown
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2629 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 94c5d5e8c..a015eb7a5 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -69,6 +69,19 @@ index_str_init(gint max_index) } } +static options_map_t d_when_complete_opts[] = +{ + {"Do Nothing", "nothing", 0, "0"}, + {"Show Notification", "notify", 1, "1"}, + {"Put Computer To Sleep", "sleep", 2, "2"}, + {"Shutdown Computer", "shutdown", 3, "3"}, +}; +combo_opts_t when_complete_opts = +{ + sizeof(d_when_complete_opts)/sizeof(options_map_t), + d_when_complete_opts +}; + static options_map_t d_par_opts[] = { {"Off", "0", 0, "0"}, @@ -331,6 +344,7 @@ typedef struct combo_name_map_t combo_name_map[] = { + {"WhenComplete", &when_complete_opts}, {"PicturePAR", &par_opts}, {"PictureModulus", &alignment_opts}, {"LoggingLevel", &logging_opts}, @@ -2232,6 +2246,7 @@ ghb_update_ui_combo_box( audio_track_opts_set(ud->builder, "AudioTrack", user_data); subtitle_track_opts_set(ud->builder, "SubtitleTrack", user_data); generic_opts_set(ud->builder, "VideoQualityGranularity", &vqual_granularity_opts); + generic_opts_set(ud->builder, "WhenComplete", &when_complete_opts); generic_opts_set(ud->builder, "PicturePAR", &par_opts); generic_opts_set(ud->builder, "PictureModulus", &alignment_opts); generic_opts_set(ud->builder, "LoggingLevel", &logging_opts); |