| 1815 | } |
| 1816 | |
| 1817 | static void |
| 1818 | subtitle_edit_response (GtkWidget *dialog, int response, GhbValue *backup) |
| 1819 | { |
| 1820 | signal_user_data_t *ud = ghb_ud(); |
| 1821 | g_signal_handlers_disconnect_by_data(dialog, backup); |
| 1822 | gtk_widget_set_visible(dialog, FALSE); |
| 1823 | if (response == GTK_RESPONSE_OK) |
| 1824 | { |
| 1825 | ghb_value_free(&backup); |
| 1826 | } |
| 1827 | else |
| 1828 | { |
| 1829 | ghb_dict_set(ghb_get_job_settings(ud->settings), |
| 1830 | "Subtitle", backup); |
| 1831 | GhbValue *subsettings = subtitle_get_selected_settings(ud, NULL); |
| 1832 | if (subsettings != NULL) |
| 1833 | { |
| 1834 | subtitle_update_dialog_widgets(ud, subsettings); |
| 1835 | } |
| 1836 | subtitle_refresh_list_ui(ud); |
| 1837 | } |
| 1838 | ghb_update_summary_info(ud); |
| 1839 | } |
| 1840 | |
| 1841 | G_MODULE_EXPORT void |
| 1842 | subtitle_row_activated_cb (GtkTreeView *tv, GtkTreePath *tp, |
nothing calls this directly
no test coverage detected