| 3732 | } |
| 3733 | |
| 3734 | G_MODULE_EXPORT void |
| 3735 | resolution_limit_changed_cb (GtkWidget *widget, gpointer data) |
| 3736 | { |
| 3737 | ghb_log_func(); |
| 3738 | signal_user_data_t *ud = ghb_ud(); |
| 3739 | |
| 3740 | ghb_widget_to_setting(ud->settings, widget); |
| 3741 | ghb_clear_presets_selection(ud); |
| 3742 | ghb_live_reset(ud); |
| 3743 | |
| 3744 | const gchar * resolution_limit; |
| 3745 | int width, height; |
| 3746 | |
| 3747 | resolution_limit = ghb_dict_get_string(ud->settings, "resolution_limit"); |
| 3748 | ghb_lookup_resolution_limit_dimensions(resolution_limit, &width, &height); |
| 3749 | if (width >= 0 && height >= 0) |
| 3750 | { |
| 3751 | ghb_dict_set_int(ud->settings, "PictureWidth", width); |
| 3752 | ghb_dict_set_int(ud->settings, "PictureHeight", height); |
| 3753 | } |
| 3754 | |
| 3755 | ghb_set_scale(ud, GHB_PIC_KEEP_HEIGHT); |
| 3756 | |
| 3757 | update_preview = TRUE; |
| 3758 | } |
| 3759 | |
| 3760 | G_MODULE_EXPORT void |
| 3761 | generic_entry_changed_cb (GtkEntry *entry, gpointer data) |
nothing calls this directly
no test coverage detected