MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / queue_open_log_dir_action_cb

Function queue_open_log_dir_action_cb

gtk/src/queuehandler.c:2228–2257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2226}
2227
2228G_MODULE_EXPORT void
2229queue_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
2259G_MODULE_EXPORT void
2260queue_play_file_action_cb (GSimpleAction *action, GVariant *param,

Callers

nothing calls this directly

Calls 3

ghb_builder_widgetFunction · 0.85
ghb_dict_get_stringFunction · 0.85

Tested by

no test coverage detected