| 2168 | } |
| 2169 | |
| 2170 | G_MODULE_EXPORT void |
| 2171 | queue_open_dest_action_cb (GSimpleAction *action, GVariant *param, |
| 2172 | signal_user_data_t *ud) |
| 2173 | { |
| 2174 | GtkListBox * lb; |
| 2175 | GtkListBoxRow * row; |
| 2176 | gint index; |
| 2177 | GhbValue * queueDict, * uiDict; |
| 2178 | const char * path; |
| 2179 | |
| 2180 | lb = GTK_LIST_BOX(ghb_builder_widget("queue_list")); |
| 2181 | row = gtk_list_box_get_selected_row(lb); |
| 2182 | if (row != NULL) |
| 2183 | { |
| 2184 | index = gtk_list_box_row_get_index(row); |
| 2185 | if (index < 0 || index >= ghb_array_len(ud->queue)) |
| 2186 | { |
| 2187 | return; |
| 2188 | } |
| 2189 | queueDict = ghb_array_get(ud->queue, index); |
| 2190 | uiDict = ghb_dict_get(queueDict, "uiSettings"); |
| 2191 | path = ghb_dict_get_string(uiDict, "destination"); |
| 2192 | g_autoptr(GFile) file = g_file_new_for_path(path); |
| 2193 | ghb_file_open_containing_folder(file); |
| 2194 | } |
| 2195 | } |
| 2196 | |
| 2197 | G_MODULE_EXPORT void |
| 2198 | queue_open_log_action_cb (GSimpleAction *action, GVariant *param, |
nothing calls this directly
no test coverage detected