| 1172 | } |
| 1173 | |
| 1174 | static void |
| 1175 | update_title_duration(signal_user_data_t *ud) |
| 1176 | { |
| 1177 | gint hh, mm, ss; |
| 1178 | gint64 duration; |
| 1179 | gchar *text; |
| 1180 | GtkWidget *widget; |
| 1181 | int title_id, titleindex; |
| 1182 | const hb_title_t *title; |
| 1183 | |
| 1184 | title_id = ghb_dict_get_int(ud->settings, "title"); |
| 1185 | title = ghb_lookup_title(title_id, &titleindex); |
| 1186 | widget = ghb_builder_widget("title_duration"); |
| 1187 | |
| 1188 | duration = title_range_get_duration(ud->settings, title); |
| 1189 | ghb_break_duration(duration, &hh, &mm, &ss); |
| 1190 | |
| 1191 | text = g_strdup_printf("%02d:%02d:%02d", hh, mm, ss); |
| 1192 | gtk_label_set_text(GTK_LABEL(widget), text); |
| 1193 | g_free(text); |
| 1194 | } |
| 1195 | |
| 1196 | void ghb_show_container_options(signal_user_data_t *ud) |
| 1197 | { |
no test coverage detected