From 5c95498f9bbf6954d14a1aaae718a8b43e36a8e7 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 25 Mar 2009 23:32:25 +0000 Subject: [PATCH] add preference option to disable update checking git-svn-id: svn://localhost/HandBrake/trunk@2273 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/ghb.ui | 41 +++++++++++++++++++++++++++++++---------- gtk/src/internal_defaults.xml | 2 ++ gtk/src/main.c | 8 +++++++- 3 files changed, 40 insertions(+), 11 deletions(-) diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index c2b0659d..5266636d 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -3311,6 +3311,20 @@ no-dct-decimate=0:cabac=1 True + + True + True + Check for updates to HandBrake at startup. + Check for Updates + True + + + + False + + + + True True @@ -3323,6 +3337,7 @@ label. False + 1 @@ -3369,8 +3384,8 @@ auto-generated destination name. - False - 1 + False + 2 @@ -3386,7 +3401,7 @@ non-hidef screens. False - 2 + 3 @@ -3404,7 +3419,7 @@ the required multiple. False - 3 + 4 @@ -3422,6 +3437,10 @@ the required multiple. none preview_count_adj True + Number of preview images that are generated +during a source scan. More images can improve +detection of cropping and other parameters, but +increases scan duration. @@ -3446,7 +3465,7 @@ the required multiple. False - 4 + 5 @@ -3462,6 +3481,8 @@ the required multiple. True 55 + Granularity of the video quality slider +in the Video settings tab. @@ -3484,7 +3505,7 @@ the required multiple. False - 5 + 6 @@ -3501,7 +3522,7 @@ location as the movie. False - 6 + 7 @@ -3539,7 +3560,7 @@ location as the movie. False - 7 + 8 @@ -3552,7 +3573,7 @@ location as the movie. False - 8 + 9 @@ -3564,7 +3585,7 @@ location as the movie. False - 9 + 10 diff --git a/gtk/src/internal_defaults.xml b/gtk/src/internal_defaults.xml index 3498a19b..5b810659 100644 --- a/gtk/src/internal_defaults.xml +++ b/gtk/src/internal_defaults.xml @@ -96,6 +96,8 @@ title_no_in_destination + check_updates + chapters_in_destination default_source diff --git a/gtk/src/main.c b/gtk/src/main.c index 08637391..a9dba9f8 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -619,7 +619,13 @@ main (int argc, char *argv[]) } // Reload and check status of the last saved queue g_idle_add((GSourceFunc)ghb_reload_queue, ud); - g_thread_create((GThreadFunc)ghb_check_update, ud, FALSE, NULL); + if (ghb_settings_get_boolean(ud->settings, "check_updates")) + { +g_message("checking"); + g_thread_create((GThreadFunc)ghb_check_update, ud, FALSE, NULL); + } +else +g_message("skipping"); // Start timer for monitoring libhb status, 500ms g_timeout_add (500, ghb_timer_cb, (gpointer)ud); // Everything should be go-to-go. Lets rock! -- 2.11.0