diff options
author | jstebbins <[email protected]> | 2009-06-04 18:45:02 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-06-04 18:45:02 +0000 |
commit | f1a347e745c0570ffaaac9bd270f4d8578d3d1b3 (patch) | |
tree | f3adc96e16509b2b65b0f894839c0f7223d0c03d /gtk/src/callbacks.c | |
parent | 528abac32d97db1606c2f26143512594529fa304 (diff) |
LinGui:
fix a couple problems with showing the cropped region in the preview
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2484 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 9e449e34f..df76073a4 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1563,7 +1563,7 @@ display_width_changed_cb(GtkWidget *widget, signal_user_data_t *ud) update_preview = TRUE; } -void +G_MODULE_EXPORT void display_height_changed_cb(GtkWidget *widget, signal_user_data_t *ud) { g_debug("display_height_changed_cb ()"); @@ -1589,7 +1589,7 @@ display_height_changed_cb(GtkWidget *widget, signal_user_data_t *ud) update_preview = TRUE; } -void +G_MODULE_EXPORT void scale_changed_cb(GtkWidget *widget, signal_user_data_t *ud) { g_debug("scale_changed_cb ()"); @@ -1632,6 +1632,18 @@ scale_changed_cb(GtkWidget *widget, signal_user_data_t *ud) } G_MODULE_EXPORT void +show_crop_changed_cb(GtkWidget *widget, signal_user_data_t *ud) +{ + g_debug("show_crop_changed_cb ()"); + ghb_widget_to_setting(ud->settings, widget); + ghb_check_dependency(ud, widget); + ghb_live_reset(ud); + if (GTK_WIDGET_SENSITIVE(widget)) + ghb_set_scale (ud, 0); + update_preview = TRUE; +} + +G_MODULE_EXPORT void generic_entry_changed_cb(GtkEntry *entry, signal_user_data_t *ud) { // Normally (due to user input) I only want to process the entry |