diff options
author | jstebbins <[email protected]> | 2008-08-22 23:20:53 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-08-22 23:20:53 +0000 |
commit | 158e774a39c3c914dbe1ae2294df57853812b3e8 (patch) | |
tree | fa65dc6e553a81ef1233f1cce3be8ee4556fed78 /gtk/src/main.c | |
parent | 212b4a9f3cdc1e4a0bdf6c99202c2e58537c7af7 (diff) |
LinGui: improve data entry method for deinterlace and denoise settings in
tweaks mode. replaces GtkComboBox with GtkComboBoxEntry.
add easter egg that gives access to hidden preferences
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1649 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index 18d64da13..3c4039cff 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -548,6 +548,18 @@ main (int argc, char *argv[]) ghb_hbfd(ud, TRUE); } const gchar *source = ghb_settings_get_string(ud->settings, "default_source"); + gboolean tweaks = ghb_settings_get_bool(ud->settings, "allow_tweaks"); + GtkWidget *widget; + widget = GHB_WIDGET(ud->builder, "deinterlace"); + tweaks ? gtk_widget_hide(widget) : gtk_widget_show(widget); + widget = GHB_WIDGET(ud->builder, "tweak_deinterlace"); + !tweaks ? gtk_widget_hide(widget) : gtk_widget_show(widget); + + widget = GHB_WIDGET(ud->builder, "denoise"); + tweaks ? gtk_widget_hide(widget) : gtk_widget_show(widget); + widget = GHB_WIDGET(ud->builder, "tweak_denoise"); + !tweaks ? gtk_widget_hide(widget) : gtk_widget_show(widget); + ghb_dvd_set_current(source, ud); // Start the show. window = GHB_WIDGET (ud->builder, "hb_window"); |