| 2226 | } |
| 2227 | |
| 2228 | G_MODULE_EXPORT void |
| 2229 | queue_open_log_dir_action_cb (GSimpleAction *action, GVariant *param, |
| 2230 | signal_user_data_t *ud) |
| 2231 | { |
| 2232 | GtkListBox * lb; |
| 2233 | GtkListBoxRow * row; |
| 2234 | gint index; |
| 2235 | GhbValue * queueDict, * uiDict; |
| 2236 | const char * path; |
| 2237 | |
| 2238 | lb = GTK_LIST_BOX(ghb_builder_widget("queue_list")); |
| 2239 | row = gtk_list_box_get_selected_row(lb); |
| 2240 | if (row != NULL) |
| 2241 | { |
| 2242 | index = gtk_list_box_row_get_index(row); |
| 2243 | if (index < 0 || index >= ghb_array_len(ud->queue)) |
| 2244 | { |
| 2245 | return; |
| 2246 | } |
| 2247 | queueDict = ghb_array_get(ud->queue, index); |
| 2248 | uiDict = ghb_dict_get(queueDict, "uiSettings"); |
| 2249 | path = ghb_dict_get_string(uiDict, "ActivityFilename"); |
| 2250 | if (path == NULL) |
| 2251 | { |
| 2252 | return; |
| 2253 | } |
| 2254 | g_autoptr(GFile) file = g_file_new_for_path(path); |
| 2255 | ghb_file_open_containing_folder(file); |
| 2256 | } |
| 2257 | } |
| 2258 | |
| 2259 | G_MODULE_EXPORT void |
| 2260 | queue_play_file_action_cb (GSimpleAction *action, GVariant *param, |
nothing calls this directly
no test coverage detected